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

index 055bef9..69573bb 100644 (file)
@@ -106,13 +106,14 @@ Roo.extend(Roo.bootstrap.NavSidebarItem, Roo.bootstrap.NavItem,  {
             };
 
             a.cn.push(span);
+            
+            if (this.badge !== '') {
+                a.cn.push({ tag: 'span',  cls : 'badge pull-right badge-' + this.badgeWeight, html: this.badge }); 
+            }
         }
         
         // then badge..
-        if (this.badge !== '') {
-            
-            a.cn.push({ tag: 'span',  cls : 'badge pull-right badge-' + this.badgeWeight, html: this.badge }); 
-        }
+        
         // fi
         if (this.menu) {
             a.cn.push({ tag : 'i', cls : 'glyphicon glyphicon-chevron-down pull-right'});