});
-Roo.bootstrap.Popover.alignment = {
- 'left' : ['r-l', [-10,0], 'right bs-popover-right'],
- 'right' : ['l-r', [10,0], 'left bs-popover-left'],
- 'bottom' : ['t-b', [0,10], 'top bs-popover-top'],
- 'top' : [ 'b-t', [0,-10], 'bottom bs-popover-bottom']
-};
+
+Roo.apply(Roo.bootstrap.Popover, {
+
+ alignment : {
+ 'left' : ['r-l', [-10,0], 'right bs-popover-right'],
+ 'right' : ['l-r', [10,0], 'left bs-popover-left'],
+ 'bottom' : ['t-b', [0,10], 'top bs-popover-top'],
+ 'top' : [ 'b-t', [0,-10], 'bottom bs-popover-bottom']
+ },
+
+ clickHander : false,
+
+
+ onMouseDown : function(e)
+ {
+ if (!e.getTarget(".roo-popup")) {
+
+ }
+
+ this.popups.each(function(p) {
+ p.hide()); })
+
+ },
+
+ popups : [],
+
+ register : function(popup)
+ {
+ // hide other popups.
+ this.popups.each(function(p) { p.hide()); })
+ this.popups.push(popup);
+ },
+ hideAll : function()
+ {
+ this.popups.each(function(p) {
+ p.hide());
+ })
+ }
\ No newline at end of file