Roo/bootstrap/MenuItem.js
authorAlan Knowles <alan@roojs.com>
Mon, 25 Aug 2014 07:33:57 +0000 (15:33 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 25 Aug 2014 07:33:57 +0000 (15:33 +0800)
Roo/bootstrap/MenuItem.js

index 91d1471..347d33a 100644 (file)
@@ -52,7 +52,9 @@ Roo.extend(Roo.bootstrap.MenuItem, Roo.bootstrap.Component,  {
                 }
             ]
         };
-       
+        if (this.parent().type == 'treeview') {
+            cfg.cls = 'treeview-menu';
+        }
         cfg.cn[0].href = this.href || cfg.cn[0].href ;
         cfg.cn[0].html = this.html || cfg.cn[0].html ;
         return cfg;