Roo/bootstrap/Button.js
[roojs1] / Roo / bootstrap / Button.js
index 29d9292..f936aab 100644 (file)
@@ -235,10 +235,13 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
     onClick : function(e)
     {
         Roo.log('button on click ');
+        
+        this.fireEvent('click', this, e);
+        
         if(this.tag !== 'a' || this.href === ''){
             e.preventDefault();
         }
-        this.fireEvent('click', this, e);
+        
     }