Roo/bootstrap/NavSidebarItem.js
authoredward <edward@roojs.com>
Tue, 27 Feb 2018 03:46:37 +0000 (11:46 +0800)
committeredward <edward@roojs.com>
Tue, 27 Feb 2018 03:46:37 +0000 (11:46 +0800)
Roo/bootstrap/NavSidebarItem.js

index 2268c14..7ba0804 100644 (file)
@@ -115,18 +115,17 @@ Roo.extend(Roo.bootstrap.NavSidebarItem, Roo.bootstrap.NavItem,  {
         if (this.badge !== '') {
             a.cn.push({ tag: 'span',  cls : 'badge pull-right badge-' + this.badgeWeight, html: this.badge }); 
         }
-            
-        // then badge..
         
-        // fi
-        if (this.menu && this.showArrow) {
-            a.cn.push({ tag : 'i', cls : 'glyphicon glyphicon-chevron-down pull-right'});
+        if (this.menu) {
+            
+            if(this.showArrow){
+                a.cn.push({ tag : 'i', cls : 'glyphicon glyphicon-chevron-down pull-right'});
+            }
+            
             a.cls += ' dropdown-toggle treeview' ;
         }
         
         return cfg;
-         
-          
     },
     
     initEvents : function()