projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97021a3
)
Roo/bootstrap/TabPanel.js
author
Alan Knowles
<alan@roojs.com>
Tue, 22 Jul 2014 08:15:58 +0000
(16:15 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 22 Jul 2014 08:15:58 +0000
(16:15 +0800)
Roo/bootstrap/TabPanel.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/TabPanel.js
b/Roo/bootstrap/TabPanel.js
index
8dba97c
..
bdf280e
100644
(file)
--- a/
Roo/bootstrap/TabPanel.js
+++ b/
Roo/bootstrap/TabPanel.js
@@
-61,9
+61,18
@@
Roo.extend(Roo.bootstrap.TabPanel, Roo.bootstrap.Component, {
}, this);
}
+ },
+ setActive: function(state)
+ {
+ this.active = state;
+ if (!state) {
+ this.el.removeClass('active');
+
+ } else if (!this.el.hasClass('active')) {
+ this.el.addClass('active');
+ }
+ this.fireEvent('changed', this, state);
}
-
-
});