Roo/bootstrap/Alert.js
authorEdward <edward@roojs.com>
Thu, 11 Jun 2015 02:56:53 +0000 (10:56 +0800)
committerEdward <edward@roojs.com>
Thu, 11 Jun 2015 02:56:53 +0000 (10:56 +0800)
Roo/bootstrap/Alert.js

index cf592d1..9277cf4 100644 (file)
@@ -40,7 +40,8 @@ Roo.extend(Roo.bootstrap.Alert, Roo.bootstrap.Component,  {
             cls : 'alert',
             cn : [
                 {
-                    tag : 'i'
+                    tag : 'i',
+                    cls : 'roo-alert-icon'
                     
                 },
                 {
@@ -57,7 +58,7 @@ Roo.extend(Roo.bootstrap.Alert, Roo.bootstrap.Component,  {
         };
         
         if(this.faicon){
-            cfg.cn[0].cls = 'fa ' + this.faicon;
+            cfg.cn[0].cls += ' fa ' + this.faicon;
         }
         
         if(this.weight){
@@ -96,9 +97,9 @@ Roo.extend(Roo.bootstrap.Alert, Roo.bootstrap.Component,  {
     setIcon : function(str)
     {
         if(this.faicon){
-            
+            this.el.select('.roo-alert-text',true).first().dom.innerHTML = str;
         }
-        this.el.select('.roo-alert-text',true).first().dom.innerHTML = str;
+        
     },
     
     hide: function()