Roo/bootstrap/NavSidebarItem.js
authorAlan Knowles <alan@roojs.com>
Wed, 27 Aug 2014 09:03:37 +0000 (17:03 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 27 Aug 2014 09:03:37 +0000 (17:03 +0800)
Roo/bootstrap/NavSidebarItem.js

index ca61444..d52a995 100644 (file)
@@ -67,6 +67,11 @@ Roo.extend(Roo.bootstrap.NavSidebarItem, Roo.bootstrap.NavItem,  {
             cfg.cls += ' active';
         }
         
+        // fixme - this should handle glyphicon or ico
+        if (this.glyphicon || this.icon) {
+            var c = this.glyphicon  ? ('glyphicon glyphicon-'+this.glyphicon)  : this.icon;
+            cfg.cn[0].html = '<i class="' +c+'"></i>'
+        }
         
          
         
@@ -79,11 +84,6 @@ Roo.extend(Roo.bootstrap.NavSidebarItem, Roo.bootstrap.NavItem,  {
             cfg.cn[0].html += '<span class="glyphicon glyphicon-chevron-down"></span>';
         }
         
-        // fixme - this should handle glyphicon or ico
-        if (this.glyphicon || this.icon) {
-            var c = this.glyphicon  ? ('glyphicon glyphicon-'+this.glyphicon)  : this.icon;
-            cfg.cn[0].html = '<i class="' +c+'"></i><span>' + cfg.cn[0].html  + '</span>'
-        }
         
         
         return cfg;