Roo/bootstrap/dash/TabBox.js
authorEdward <edward@roojs.com>
Tue, 2 Dec 2014 09:32:36 +0000 (17:32 +0800)
committerEdward <edward@roojs.com>
Tue, 2 Dec 2014 09:32:36 +0000 (17:32 +0800)
Roo/bootstrap/dash/TabBox.js

index 6d1ca58..87b3600 100644 (file)
@@ -74,28 +74,20 @@ Roo.extend(Roo.bootstrap.dash.TabBox, Roo.bootstrap.Component,  {
     
     initEvents: function() {
         
-        // if(!this.href){
-        //     this.el.on('click', this.onClick, this);
-        // }
-        var _this = this;
-        Roo.each(_this.el.select('li',true).elements, function(el){
-            Roo.log(el);
-            el.on('click', _this.onClick, el);
-        })
+//        var _this = this;
+//        Roo.each(_this.el.select('li',true).elements, function(el){
+//            Roo.log(el);
+//            el.on('click', _this.onClick, el);
+//        })
     },
     
     onClick : function(e)
     {
-        Roo.log('img onclick');
-
-        this.findParent('ul',false, true).select('li.active').removeClass('active');
-        this.addClass('active');
-        Roo.log(this);
-            //this.el.select('li.active',true).first().removeClass('active');            
-
-           // Roo.get(e.target).findParent('li',false, true).addClass('active');
-
-        //this.fireEvent('toggle', this, e);
+//        Roo.log('img onclick');
+//
+//        this.findParent('ul',false, true).select('li.active').removeClass('active');
+//        this.addClass('active');
+//        Roo.log(this);
 
     }