From 3d1f942df8e9a5f1cbae5fe3bed135335ac2bcbe Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 28 Jan 2021 13:43:35 +0800 Subject: [PATCH] roojs-bootstrap.js roojs-bootstrap-debug.js Roo/bootstrap/Popover.js --- Roo/bootstrap/Popover.js | 6 ++++-- roojs-bootstrap-debug.js | 8 +++++--- roojs-bootstrap.js | 4 ++-- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/Roo/bootstrap/Popover.js b/Roo/bootstrap/Popover.js index c27829256f..b6cb3b8d3a 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); + + if (!this.modal) { + Roo.bootstrap.Popover.register(this); + } this.el.select('.popover-title',true).setVisibilityMode(Roo.Element.DISPLAY); diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 666dc43b69..5d1e3fde3a 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -19661,7 +19661,7 @@ Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component, { getAutoCreate : function(){ var cfg = { - cls : 'popover roo-dynamic shadow roo-popover', + cls : 'popover roo-dynamic shadow roo-popover' + (this.modal ? '-modal' : ''), style: 'display:block', cn : [ { @@ -19757,8 +19757,10 @@ Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component, { initEvents : function() { - - Roo.bootstrap.Popover.register(this); + + if (!this.modal) { + Roo.bootstrap.Popover.register(this); + } this.el.select('.popover-title',true).setVisibilityMode(Roo.Element.DISPLAY); diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index c3f6b6f28c..e591b6e9ce 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -810,11 +810,11 @@ var A=this;if(this.store.getCount()>0){this.store.data.each(function(d){A.addIte );});}this.renderEvents();if(this.calevents.length&&this.loadMask){this.maskEl.hide();}},onBeforeLoad:function(){this.clearEvents();if(this.loadMask){this.maskEl.show();}}}); // Roo/bootstrap/Popover.js Roo.bootstrap.Popover=function(A){Roo.bootstrap.Popover.superclass.constructor.call(this,A);this.addEvents({"show":true,"hide":true});};Roo.extend(Roo.bootstrap.Popover,Roo.bootstrap.Component,{title:false,html:false,placement:'right',trigger:'hover',modal:false,delay:0,over:false,can_build_overlaid:false,maskEl:false,getChildContainer:function(){return this.el.select('.popover-content',true).first(); -},getAutoCreate:function(){var A={cls:'popover roo-dynamic shadow roo-popover',style:'display:block',cn:[{cls:'arrow'},{cls:'popover-inner ',cn:[{tag:'h3',cls:'popover-title popover-header',html:this.title||''},{cls:'popover-content popover-body'+this.cls,html:this.html||''} +},getAutoCreate:function(){var A={cls:'popover roo-dynamic shadow roo-popover'+(this.modal?'-modal':''),style:'display:block',cn:[{cls:'arrow'},{cls:'popover-inner ',cn:[{tag:'h3',cls:'popover-title popover-header',html:this.title||''},{cls:'popover-content popover-body'+this.cls,html:this.html||''} ]}]};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