Roo/bootstrap/Button.js
[roojs1] / Roo / bootstrap / Button.js
index f30061b..6900dec 100644 (file)
@@ -79,8 +79,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
     
     
     pressed : null,
-    
-    actionMode : 'el',
+     
     
     getAutoCreate : function(){
         
@@ -271,7 +270,11 @@ 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();
         
     },
     onClick : function(e)
@@ -335,7 +338,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
     },
     hide: function() {
        
-        this.el.
+     
         this.el.hide();   
     },
     show: function() {