return;
}
- if(this.animateRef && this.href.charAt(0) == '#'){
- this.scrollToElement(e);
- }
-
var p = this.parent();
+ // if parent is a navbarheader....- and link is probably a '#' page ref.. then remove the expanded menu.
if (p.parentType == 'NavHeaderbar' && !this.menu) {
// remove the collapsed menu expand...
p.parent().el.select('.navbar-collapse',true).removeClass('in');
}
+ if(this.animateRef && this.href.charAt(0) == '#'){
+ this.scrollToElement(e);
+ }
+
if (['tabs','pills'].indexOf(p.type)!==-1) {
if (typeof(p.setActiveItem) !== 'undefined') {
p.setActiveItem(this);
}
}
- // if parent is a navbarheader....- and link is probably a '#' page ref.. then remove the expanded menu.
-
-
},
isActive: function () {