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

index 57eceb3..cf592d1 100644 (file)
@@ -39,6 +39,10 @@ Roo.extend(Roo.bootstrap.Alert, Roo.bootstrap.Component,  {
             tag : 'div',
             cls : 'alert',
             cn : [
+                {
+                    tag : 'i'
+                    
+                },
                 {
                     tag : 'b',
                     cls : 'roo-alert-title',
@@ -53,10 +57,7 @@ Roo.extend(Roo.bootstrap.Alert, Roo.bootstrap.Component,  {
         };
         
         if(this.faicon){
-            cfg.cn.unshift({
-                tag : 'i',
-                cls : 'fa ' + this.faicon
-            });
+            cfg.cn[0].cls = 'fa ' + this.faicon;
         }
         
         if(this.weight){
@@ -94,6 +95,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;
     },