},
onClick : function(e)
{
+ if (this.disabled) {
+ return;
+ }
+
Roo.log('button on click ');
if(this.preventDefault){
e.preventDefault();
this.fireEvent('click', this, e);
- }
-
+ },
+ enable : function()
+ {
+ this.disabled = false;
+ this.el.removeClass('disabled');
+ },
+ disable : function()
+ {
+ this.disabled = true;
+ this.el.addClass('disabled');
+ },
});