Roo/bootstrap/menu/Menu.js
authorEdward <edward@roojs.com>
Thu, 4 Dec 2014 10:11:07 +0000 (18:11 +0800)
committerEdward <edward@roojs.com>
Thu, 4 Dec 2014 10:11:07 +0000 (18:11 +0800)
Roo/bootstrap/menu/Menu.js

index 0d40f0a..4a7fb8c 100644 (file)
@@ -137,7 +137,12 @@ Roo.extend(Roo.bootstrap.menu.Menu, Roo.bootstrap.Component,  {
         return cfg;
     },
     
-    initEvents : function() {
+    initEvents : function() 
+    {
+        if(this.submenu){
+            return;
+        }
+        
         this.hidden = true;
         this.triggerEl = this.el.select('button.dropdown-toggle', true).first();
         this.triggerEl.on('click', this.onTriggerPress, this);