projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edeab81
)
Roo/bootstrap/Alert.js
author
Edward
<edward@roojs.com>
Thu, 11 Jun 2015 02:56:04 +0000
(10:56 +0800)
committer
Edward
<edward@roojs.com>
Thu, 11 Jun 2015 02:56:04 +0000
(10:56 +0800)
Roo/bootstrap/Alert.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Alert.js
b/Roo/bootstrap/Alert.js
index
57eceb3
..
cf592d1
100644
(file)
--- a/
Roo/bootstrap/Alert.js
+++ b/
Roo/bootstrap/Alert.js
@@
-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;
},