Roo/bootstrap/Button.js
authorEdward <edward@roojs.com>
Fri, 28 Mar 2014 10:59:09 +0000 (18:59 +0800)
committerEdward <edward@roojs.com>
Fri, 28 Mar 2014 10:59:09 +0000 (18:59 +0800)
Roo/bootstrap/Button.js

index 6385ef1..29d9292 100644 (file)
@@ -235,7 +235,9 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
     onClick : function(e)
     {
         Roo.log('button on click ');
-        e.preventDefault();
+        if(this.tag !== 'a' || this.href === ''){
+            e.preventDefault();
+        }
         this.fireEvent('click', this, e);
     }