Roo/bootstrap/Button.js
authorAlan Knowles <alan@roojs.com>
Fri, 7 Feb 2014 07:35:24 +0000 (15:35 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 7 Feb 2014 07:35:24 +0000 (15:35 +0800)
Roo/bootstrap/Button.js

index c6bc872..f15af89 100644 (file)
@@ -224,8 +224,14 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
        this.el.select('a',true).relayEvent('click', this);
        this.el.select('button',true).relayEvent('click', this);
         
+    },
+    onClick : function(e)
+    {
+        e.preventDefault();
+        this.fireEvent('click', thism3);
     }
-   
+    
+    
 });
 
  
\ No newline at end of file