Roo/bootstrap/Popover.js
authorAlan Knowles <alan@roojs.com>
Thu, 28 Jan 2021 08:13:19 +0000 (16:13 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 28 Jan 2021 08:13:19 +0000 (16:13 +0800)
Roo/bootstrap/Popover.js

index 8795b8a..1f6cf7b 100644 (file)
@@ -61,16 +61,19 @@ Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component,  {
     can_build_overlaid : false,
     
     maskEl : false, // the mask element
+    headerEl : false,
+    contentEl : false,
+    
     
     getChildContainer : function()
     {
         return this.contentEl;
-        return this.el.select('.popover-content',true).first();
+        
     },
     getPopoverHeader : function()
     {
         return this.headerEl
-    }
+    },
     
     
     getAutoCreate : function(){
@@ -109,7 +112,7 @@ Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component,  {
     {
         this.title = str;
         if (this.el) {
-            this.el.select('.popover-title',true).first().dom.innerHTML = str;
+            this.headerEl.dom.innerHTML = str;
         }
         
     },