Roo/bootstrap/Button.js
authorEdward <edward@roojs.com>
Mon, 31 Mar 2014 06:43:20 +0000 (14:43 +0800)
committerEdward <edward@roojs.com>
Mon, 31 Mar 2014 06:43:20 +0000 (14:43 +0800)
Roo/bootstrap/Button.js

index 625bba5..88ad1cf 100644 (file)
@@ -237,9 +237,10 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
     onClick : function(e)
     {
         Roo.log('button on click ');
-        if(this.tag !== 'a' || this.href === ''){
+        if(this.preventDefault){
             e.preventDefault();
         }
+        
         this.fireEvent('click', this, e);
     }