svg changes
[roojs1] / roojs-bootstrap-debug.js
index 34f9364..f88b100 100644 (file)
@@ -20399,15 +20399,18 @@ Roo.apply(Roo.bootstrap.Popover, {
 
     clickHander : false,
     
+    
 
     onMouseDown : function(e)
     {
-        if (!e.getTarget(".roo-popover")) {
+        if (this.popup.length &&  !e.getTarget(".roo-popover") && this.popup.length) {
+            /// what is nothing is showing..
             this.hideAll();
         }
          
     },
     
+    
     popups : [],
     
     register : function(popup)
@@ -20416,6 +20419,8 @@ Roo.apply(Roo.bootstrap.Popover, {
             Roo.bootstrap.Popover.clickHandler = Roo.get(document).on("mousedown", Roo.bootstrap.Popover.onMouseDown, Roo.bootstrap.Popover);
         }
         // hide other popups.
+        popup.on('show', Roo.bootstrap.Popover.onShow, Roo.bootstrap.Popover, popup);
+        popup.on('hide', Roo.bootstrap.Popover.onHide, Roo.bootstrap.Popover, popup);
         this.hideAll();
         this.popups.push(popup);
     },
@@ -20424,6 +20429,9 @@ Roo.apply(Roo.bootstrap.Popover, {
         this.popups.forEach(function(p) {
             p.hide();
         });
+    },
+    onShow : function(p) {
+        this.popups.push(p);
     }
 
 });/*