Roo/bootstrap/NavItem.js
authorEdward <edward@roojs.com>
Wed, 1 Apr 2015 02:07:01 +0000 (10:07 +0800)
committerEdward <edward@roojs.com>
Wed, 1 Apr 2015 02:07:01 +0000 (10:07 +0800)
Roo/bootstrap/NavItem.js

index a89ec6d..af8aec7 100644 (file)
@@ -110,17 +110,20 @@ Roo.extend(Roo.bootstrap.NavItem, Roo.bootstrap.Component,  {
         
         return cfg;
     },
-    initEvents: function() {
-       // Roo.log('init events?');
-       // Roo.log(this.el.dom);
+    initEvents: function() 
+    {
         if (typeof (this.menu) != 'undefined') {
             this.menu.parentType = this.xtype;
             this.menu.triggerEl = this.el;
             this.addxtype(Roo.apply({}, this.menu));
         }
-
-       
+        
         this.el.select('a',true).on('click', this.onClick, this);
+        
+        if(this.tagtype == 'span'){
+            this.el.select('span',true).on('click', this.onClick, this);
+        }
+       
         // at this point parent should be available..
         this.parent().register(this);
     },