From 2a1128aa83fcd4173e9f0fe44f616544ac7384e0 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 28 Jan 2021 16:46:31 +0800 Subject: [PATCH] roojs-bootstrap.js roojs-bootstrap-debug.js --- roojs-bootstrap-debug.js | 2 +- roojs-bootstrap.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index fec561e2a1..5325970db5 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -19686,7 +19686,7 @@ Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component, { html : this.title === false ? '' : this.title }, { - cls : 'popover-content popover-body' + this.cls, + cls : 'popover-content popover-body ' + (this.cls || ''), html : this.html || '' } ] diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index 01a4230fe9..7fa61458d7 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -811,7 +811,7 @@ var A=this;if(this.store.getCount()>0){this.store.data.each(function(d){A.addIte // 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,headerEl:false,contentEl:false,getChildContainer:function(){return this.contentEl; },getPopoverHeader:function(){this.title=true;return this.headerEl},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===false?'':this.title} -,{cls:'popover-content popover-body'+this.cls,html:this.html||''}]}]};return A;},setTitle:function(A){this.title=A;if(this.el){this.headerEl.dom.innerHTML=A;}},setContent:function(A){this.html=A;if(this.contentEl){this.contentEl.dom.innerHTML=A;}},onRender:function(ct,A){Roo.bootstrap.Component.superclass.onRender.call(this,ct,A); +,{cls:'popover-content popover-body '+(this.cls||''),html:this.html||''}]}]};return A;},setTitle:function(A){this.title=A;if(this.el){this.headerEl.dom.innerHTML=A;}},setContent:function(A){this.html=A;if(this.contentEl){this.contentEl.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