From 5513ad725d801cb42f11972cbc76383d0880dbaa Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 28 Jan 2021 16:16:50 +0800 Subject: [PATCH] sync --- Roo/bootstrap/PopoverNav.php | 0 docs/src/Roo_bootstrap_Popover.js.html | 29 +++++++++++++++++++------- 2 files changed, 21 insertions(+), 8 deletions(-) delete mode 100644 Roo/bootstrap/PopoverNav.php diff --git a/Roo/bootstrap/PopoverNav.php b/Roo/bootstrap/PopoverNav.php deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/src/Roo_bootstrap_Popover.js.html b/docs/src/Roo_bootstrap_Popover.js.html index 37fef42a2f..3383674fa6 100644 --- a/docs/src/Roo_bootstrap_Popover.js.html +++ b/docs/src/Roo_bootstrap_Popover.js.html @@ -61,11 +61,21 @@ can_build_overlaid : false, maskEl : false, // the mask element + headerEl : false, + contentEl : false, + getChildContainer : function() { - return this.el.select('.popover-content',true).first(); + return this.contentEl; + }, + getPopoverHeader : function() + { + this.title = true; // flag not to hide it.. + return this.headerEl + }, + getAutoCreate : function(){ @@ -82,7 +92,7 @@ { tag: 'h3', cls: 'popover-title popover-header', - html : this.title || '' + html : this.title === false ? '' : this.title }, { cls : 'popover-content popover-body' + this.cls, @@ -103,7 +113,7 @@ { this.title = str; if (this.el) { - this.el.select('.popover-title',true).first().dom.innerHTML = str; + this.headerEl.dom.innerHTML = str; } }, @@ -113,8 +123,8 @@ setContent: function(str) { this.html = str; - if (this.el) { - this.el.select('.popover-content',true).first().dom.innerHTML = str; + if (this.contentEl) { + this.contentEl.dom.innerHTML = str; } }, @@ -153,6 +163,9 @@ Roo.EventManager.onWindowResize(this.resizeMask, this, true); + this.contentEl = this.el.select('.popover-content',true).first(); + this.headerEl = this.el.select('.popover-header',true).first(); + this.initEvents(); }, @@ -172,7 +185,7 @@ } - this.el.select('.popover-title',true).setVisibilityMode(Roo.Element.DISPLAY); + this.headerEl.setVisibilityMode(Roo.Element.DISPLAY); // probably not needed as it's default in BS4 this.el.enableDisplayMode('block'); this.el.hide(); if (this.over === false && !this.parent()) { @@ -270,8 +283,8 @@ 'bs-popover-top','bs-popover-bottom', 'bs-popover-left', 'bs-popover-right' ]); - if (!this.title.length) { - this.el.select('.popover-title',true).hide(); + if (this.title === false) { + this.headerEl.hide(); } -- 2.39.2