Roo/bootstrap/MessageBar.js
authorEdward <edward@roojs.com>
Wed, 4 Jun 2014 08:46:14 +0000 (16:46 +0800)
committerEdward <edward@roojs.com>
Wed, 4 Jun 2014 08:46:14 +0000 (16:46 +0800)
roojs-bootstrap.js
roojs-bootstrap-debug.js

Roo/bootstrap/MessageBar.js
roojs-bootstrap-debug.js
roojs-bootstrap.js

index 14e45aa..1d4d6f1 100644 (file)
@@ -79,6 +79,8 @@ Roo.extend(Roo.bootstrap.MessageBar, Roo.bootstrap.Component,  {
             this.render();
         }
         
+        this.el.show();
+        
         this.fireEvent('show', this);
         
     },
index 2f8ecb6..5017964 100644 (file)
@@ -15622,6 +15622,8 @@ Roo.extend(Roo.bootstrap.MessageBar, Roo.bootstrap.Component,  {
             this.render();
         }
         
+        this.el.show();
+        
         this.fireEvent('show', this);
         
     },
index d4515fe..f19e513 100644 (file)
@@ -337,4 +337,4 @@ this.fireEvent("rowdeselect",this,A);this.fireEvent("selectionchange",this);},re
 Roo.bootstrap.MessageBar=function(A){Roo.bootstrap.MessageBar.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.MessageBar,Roo.bootstrap.Component,{html:'',weight:'info',closable:true,getAutoCreate:function(){var A={tag:'div',cls:'alert alert-dismissable alert-messages alert-'+this.weight,html:this.html||''};if(this.closable){A.cn={tag:'button',cls:'close',html:'x'}}return 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);}
 this.el.select('>button.close').on('click',this.hide,this);},show:function(){if(!this.rendered){this.render();}
-this.fireEvent('show',this);},hide:function(){this.el.hide();this.fireEvent('hide',this);},update:function(){}});
+this.el.show();this.fireEvent('show',this);},hide:function(){this.el.hide();this.fireEvent('hide',this);},update:function(){}});