Roo/bootstrap/Navbar/Item.js
authorEdward <edward@roojs.com>
Thu, 24 Apr 2014 11:45:57 +0000 (19:45 +0800)
committerEdward <edward@roojs.com>
Thu, 24 Apr 2014 11:45:57 +0000 (19:45 +0800)
Roo/bootstrap/Navbar/Item.js

index bfe6edd..91054cf 100644 (file)
@@ -170,21 +170,21 @@ Roo.extend(Roo.bootstrap.Navbar.Item, Roo.bootstrap.Component,  {
     
     onTabsClick : function(e)
     {
-        Roo.each(this.parent().el.select('.active',true).elements, function(v){
-            v.removeClass('active');
-        })
-
-        this.el.addClass('active');
-
-        if(this.href && this.href.substring(0,1) == '#'){
-            var tab = Roo.select('[tabId=' + this.href + ']', true).first();
-
-            Roo.each(tab.findParent('.tab-content', 0, true).select('.active', true).elements, function(v){
-                v.removeClass('active');
-            });
-
-            tab.addClass('active');
-        }
+//        Roo.each(this.parent().el.select('.active',true).elements, function(v){
+//            v.removeClass('active');
+//        })
+//
+//        this.el.addClass('active');
+//
+//        if(this.href && this.href.substring(0,1) == '#'){
+//            var tab = Roo.select('[tabId=' + this.href + ']', true).first();
+//
+//            Roo.each(tab.findParent('.tab-content', 0, true).select('.active', true).elements, function(v){
+//                v.removeClass('active');
+//            });
+//
+//            tab.addClass('active');
+//        }
     }
    
 });