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

index 6ddd049..87ed547 100644 (file)
@@ -30,7 +30,7 @@ Roo.extend(Roo.bootstrap.Alert, Roo.bootstrap.Component,  {
     title: '',
     html: '',
     weight: '',
-    faicon: '',
+    faicon: false,
     
     getAutoCreate : function()
     {
@@ -52,6 +52,13 @@ Roo.extend(Roo.bootstrap.Alert, Roo.bootstrap.Component,  {
             ]
         };
         
+        if(this.faicon){
+            cfg.cn.unshift({
+                tag : 'i',
+                cls : 'fa ' + this.faicon
+            });
+        }
+        
         
         
         return cfg;