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)
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);
},
this.popups.forEach(function(p) {
p.hide();
});
+ },
+ onShow : function(p) {
+ this.popups.push(p);
}
});/*