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