Roo/bootstrap/NavSidebar.js
authorAlan Knowles <alan@roojs.com>
Thu, 21 Aug 2014 07:11:36 +0000 (15:11 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 21 Aug 2014 07:11:36 +0000 (15:11 +0800)
Roo/bootstrap/NavSidebar.js

index 6a56d7f..70b45a3 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 /**
- * @class Roo.bootstrap.Navbar
+ * @class Roo.bootstrap.NavSidebar
  * @extends Roo.bootstrap.Component
  * Bootstrap Navbar class
  * @cfg {Boolean} sidebar has side bar
@@ -39,63 +39,15 @@ Roo.extend(Roo.bootstrap.NavSidebar, Roo.bootstrap.Navbar,  {
     
     sidebar : true,
     
-    // private
-    navItems : false,
-    
     getAutoCreate : function(){
         
         
-        return = {
+        return  {
             tag: 'div',
             cls: 'sidebar-nav'
         };
     
         
-    },
-    
-    initEvents :function ()
-    {
-        //Roo.log(this.el.select('.navbar-toggle',true));
-        this.el.select('.navbar-toggle',true).on('click', function() {
-           // Roo.log('click');
-            this.el.select('.navbar-collapse',true).toggleClass('in');                                 
-        }, this);
-        
-        var mark = {
-            tag: "div",
-            cls:"x-dlg-mask"
-        }
-        
-        this.maskEl = Roo.DomHelper.append(this.el, mark, true);
-        
-        var size = this.el.getSize();
-        this.maskEl.setSize(size.width, size.height);
-        this.maskEl.enableDisplayMode("block");
-        this.maskEl.hide();
-        
-        if(this.loadMask){
-            this.maskEl.show();
-        }
-    },
-    
-    
-    getChildContainer : function()
-    {
-        if (this.bar === true) {
-            return this.el.select('.collapse',true).first();
-        }
-        
-        return this.el;
-    },
-    
-    mask : function()
-    {
-        this.maskEl.show();
-    },
-    
-    unmask : function()
-    {
-        this.maskEl.hide();
     }