projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a789a9
)
Roo/bootstrap/dash/TabBox.js
author
michael
<michael@office.ROOJS.COM>
Wed, 26 Nov 2014 09:55:19 +0000
(17:55 +0800)
committer
michael
<michael@office.ROOJS.COM>
Wed, 26 Nov 2014 09:55:19 +0000
(17:55 +0800)
Roo/bootstrap/dash/TabBox.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/dash/TabBox.js
b/Roo/bootstrap/dash/TabBox.js
index
c7431ab
..
31b5a4d
100644
(file)
--- a/
Roo/bootstrap/dash/TabBox.js
+++ b/
Roo/bootstrap/dash/TabBox.js
@@
-98,12
+98,11
@@
Roo.extend(Roo.bootstrap.dash.TabBox, Roo.bootstrap.Component, {
onClick : function(e)
{
Roo.log('img onclick');
- Roo.log(this.el);
- Roo.log(Roo.get(e.target));
+
if(!Roo.get(e.target).hasClass('active')){
Roo.select('.active',true).first().removeClass('active');
- Roo.log(this.el);
-
this.el
.addClass('active');
+
+
Roo.log(Roo.get(e.target))
.addClass('active');
}
this.fireEvent('toggle', this, e);