Roo/bootstrap/MessageBar.js
authorEdward <edward@roojs.com>
Wed, 4 Jun 2014 09:15:57 +0000 (17:15 +0800)
committerEdward <edward@roojs.com>
Wed, 4 Jun 2014 09:15:57 +0000 (17:15 +0800)
roojs-bootstrap.js
roojs-bootstrap-debug.js

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

index 158a943..a0d211a 100644 (file)
@@ -103,7 +103,7 @@ Roo.extend(Roo.bootstrap.MessageBar, Roo.bootstrap.Component,  {
 //        
 //        e.data = this.html || '';
 
-        this.el.dom.innerHTML = this.html || '';
+        this.el.select('>.message', true).first().dom.innerHTML = this.html || '';
     }
    
 });
index 1ca9173..77b572e 100644 (file)
@@ -15646,7 +15646,7 @@ Roo.extend(Roo.bootstrap.MessageBar, Roo.bootstrap.Component,  {
 //        
 //        e.data = this.html || '';
 
-        this.el.dom.innerHTML = this.html || '';
+        this.el.select('>.message', true).first().dom.innerHTML = this.html || '';
     }
    
 });
index ee24746..4b4cc52 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,cn:[{tag:'span',cls:'message',html:this.html||''}]};if(this.closable){A.cn.push({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.el.show();this.fireEvent('show',this);},hide:function(){this.el.hide();this.fireEvent('hide',this);},update:function(){this.el.dom.innerHTML=this.html||'';}});
+this.el.show();this.fireEvent('show',this);},hide:function(){this.el.hide();this.fireEvent('hide',this);},update:function(){this.el.select('>.message',true).first().dom.innerHTML=this.html||'';}});