projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c89e1e8
)
Roo/bootstrap/Button.js
author
Edward
<edward@roojs.com>
Fri, 28 Mar 2014 10:59:09 +0000
(18:59 +0800)
committer
Edward
<edward@roojs.com>
Fri, 28 Mar 2014 10:59:09 +0000
(18:59 +0800)
Roo/bootstrap/Button.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Button.js
b/Roo/bootstrap/Button.js
index
6385ef1
..
29d9292
100644
(file)
--- a/
Roo/bootstrap/Button.js
+++ b/
Roo/bootstrap/Button.js
@@
-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);
}