projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ed0fae
)
Roo/bootstrap/NavItem.js
author
Alan Knowles
<alan@roojs.com>
Tue, 10 Mar 2015 07:10:30 +0000
(15:10 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 10 Mar 2015 07:10:30 +0000
(15:10 +0800)
Roo/bootstrap/NavItem.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/NavItem.js
b/Roo/bootstrap/NavItem.js
index
61a79de
..
b19fcfa
100644
(file)
--- a/
Roo/bootstrap/NavItem.js
+++ b/
Roo/bootstrap/NavItem.js
@@
-145,10
+145,10
@@
Roo.extend(Roo.bootstrap.NavItem, Roo.bootstrap.Component, {
if(this.fireEvent('click', this, e) === false){
return;
};
-
- if (['tabs','pills'].indexOf(
this.parent()
.type)!==-1) {
- if (typeof(
this.parent()
.setActiveItem) !== 'undefined') {
-
this.parent()
.setActiveItem(this);
+ var p = this.parent();
+ if (['tabs','pills'].indexOf(
p
.type)!==-1) {
+ if (typeof(
p
.setActiveItem) !== 'undefined') {
+
p
.setActiveItem(this);
}
}
// if parent is a navbarheader....