clickHander : false,
+
onMouseDown : function(e)
{
- if (this.popup.length, !e.getTarget(".roo-popover") && this.popup.length) {
+ 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);
- popup.on('hide', Roo.bootstrap.Popover.onHide);
+ 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);
},
p.hide();
});
},
- unregister : function(popup)
- {
-
+ onShow : function(p) {
+ this.popups.push(p);
}
});
\ No newline at end of file