roojs-bootstrap.js
[roojs1] / roojs-bootstrap-debug.js
index 666dc43..5d1e3fd 100644 (file)
@@ -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);