this.el.select('.alert',true).first().addClass('alert-' + this.weight);
},
- setIcon : function(str)
+ setIcon : function(icon)
{
if(this.faicon){
- this.el.select('.roo-alert-text',true).first().dom.innerHTML = str;
+ this.el.select('.roo-alert-icon',true).first().removeClass(['fa', 'fa-' + this.faicon]);
}
+ this.faicon = icon
+
+ this.el.select('.roo-alert-icon',true).first().addClass(['fa', 'fa-' + this.faicon]);
},
hide: function()