Roo/bootstrap/Navbar.Item.js
authorJulian Knowles <julian@roojs.com>
Tue, 21 Jan 2014 06:21:53 +0000 (14:21 +0800)
committerJulian Knowles <julian@roojs.com>
Tue, 21 Jan 2014 06:21:53 +0000 (14:21 +0800)
Roo/bootstrap/Navbar.Item.js

index 60a544f..cc19bf6 100644 (file)
@@ -29,8 +29,10 @@ Roo.extend(Roo.bootstrap.Navbar.Item, Roo.bootstrap.Component,  {
         ];
        
         cfg.cn[0].html = this.html || cfg.cn[0].html ;
-       
-       if (!this.href) {
+       if (this.menu) {
+           cfg.cn[0].tag='a';
+           cfg.cn[0].href='#';
+       }else if (!this.href) {
            cfg.cn[0].tag='p';
            cfg.cn[0].cls='navbar-text';
        } else {