projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2219d1
)
Roo/bootstrap/dash/TabBox.js
author
Alan Knowles
<alan@roojs.com>
Fri, 30 Jan 2015 04:32:47 +0000
(12:32 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 30 Jan 2015 04:32:47 +0000
(12:32 +0800)
Roo/bootstrap/dash/TabBox.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/dash/TabBox.js
b/Roo/bootstrap/dash/TabBox.js
index
7198cea
..
5b4c2d7
100644
(file)
--- a/
Roo/bootstrap/dash/TabBox.js
+++ b/
Roo/bootstrap/dash/TabBox.js
@@
-98,10
+98,12
@@
Roo.extend(Roo.bootstrap.dash.TabBox, Roo.bootstrap.Component, {
// tabs are rendere left to right..
var ctr = this.el.select('.nav-tabs', true).first();
+ var qty = this.getChildContainer().select('.tab-pane',true).length;
+
var tab = ctr.createChild({
tag : 'li',
- cls : 'nav-tab',
+ cls : 'nav-tab'
+ (qty ? '' : ' active')
,
cn : [
{
tag : 'a',
@@
-109,7
+111,6
@@
Roo.extend(Roo.bootstrap.dash.TabBox, Roo.bootstrap.Component, {
html : pane.title
}
]
-
});
pane.tab = tab;