remove debugging code
[roojs1] / Roo / bootstrap / Component.js
index 984a02c..01b90dc 100644 (file)
@@ -365,12 +365,20 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent,  {
         
         return cn;
     },
+    
+    /**
+     * Set the element that will be used to show or hide
+     */
+    setVisibilityEl : function(el)
+    {
+       this.visibilityEl = el;
+    },
+    
      /**
      * Get the element that will be used to show or hide
      */
     getVisibilityEl : function()
     {
-       
        if (typeof(this.visibilityEl) == 'object') {
            return this.visibilityEl;
        }
@@ -379,9 +387,7 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent,  {
            return this.visibilityEl == 'parent' ? this.parent().getEl() : this.getEl();
        }
        
-       
        return this.getEl();
-       
     },
     
     /**
@@ -393,7 +399,9 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent,  {
             return;
         }
          
-        this.getVisibilityEl().removeClass('hidden');
+        this.getVisibilityEl().removeClass(['hidden','d-none']);
+        
+        this.fireEvent('show', this);
         
         
     },
@@ -406,7 +414,9 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent,  {
             return;
         }
         
-        this.getVisibilityEl().addClass('hidden');
+        this.getVisibilityEl().addClass(['hidden','d-none']);
+        
+        this.fireEvent('hide', this);
         
     }
 });