Roo/bootstrap/Button.js
[roojs1] / Roo / bootstrap / Button.js
index f6566f7..6900dec 100644 (file)
@@ -79,8 +79,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
     
     
     pressed : null,
-    
-    actionMode : 'el',
+     
     
     getAutoCreate : function(){
         
@@ -271,6 +270,10 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
             this.el.select('.roo-button').on('click', this.onClick, this);
        }
        
+       if(this.removeClass){
+           this.el.on('click', this.onClick, this);
+       }
+       
        this.el.enableDisplayMode();
         
     },
@@ -332,17 +335,17 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
     setText : function(str)
     {
         this.el.select('.roo-button-text',true).first().dom.innerHTML = str;
-    }/*,
+    },
     hide: function() {
        
-        this.el.
+     
         this.el.hide();   
     },
     show: function() {
        
         this.el.show();   
     }
-    */
+    
     
 });