From: Alan Knowles Date: Thu, 28 Jan 2021 05:42:22 +0000 (+0800) Subject: roojs-bootstrap.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=d36541dae20b28f581d4c75647d49f4ed2170eee roojs-bootstrap.js roojs-bootstrap-debug.js Roo/bootstrap/Popover.js --- diff --git a/Roo/bootstrap/Popover.js b/Roo/bootstrap/Popover.js index f0b5a40bd0..191c86a0d2 100644 --- a/Roo/bootstrap/Popover.js +++ b/Roo/bootstrap/Popover.js @@ -166,8 +166,10 @@ Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component, { initEvents : function() { - + Roo.bootstrap.Popover.register(this); + + this.el.select('.popover-title',true).setVisibilityMode(Roo.Element.DISPLAY); this.el.enableDisplayMode('block'); this.el.hide(); diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 0db1a7dba6..93897da4ee 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -19757,8 +19757,10 @@ Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component, { initEvents : function() { + if (!this.modal) { + Roo.bootstrap.Popover.register(this); + } - Roo.bootstrap.Popover.register(this); this.el.select('.popover-title',true).setVisibilityMode(Roo.Element.DISPLAY); this.el.enableDisplayMode('block'); this.el.hide(); diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index c3f6b6f28c..2be0515ad3 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -814,7 +814,7 @@ Roo.bootstrap.Popover=function(A){Roo.bootstrap.Popover.superclass.constructor.c ]}]};return A;},setTitle:function(A){this.title=A;if(this.el){this.el.select('.popover-title',true).first().dom.innerHTML=A;}},setContent:function(A){this.html=A;if(this.el){this.el.select('.popover-content',true).first().dom.innerHTML=A;}},onRender:function(ct,A){Roo.bootstrap.Component.superclass.onRender.call(this,ct,A); if(!this.el){var B=Roo.apply({},this.getAutoCreate());B.id=Roo.id();if(this.cls){B.cls+=' '+this.cls;}if(this.style){B.style=this.style;}this.el=Roo.get(document.body).createChild(B,A);}var C=[];if(typeof(this.items)!='undefined'){var D=this.items;delete this.items; for(var i=0;i