Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Added diabled attributes for the buttons.
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeaun committed Mar 9, 2009
1 parent f7639b1 commit a175c09
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Source/MooEditable/MooEditable.js
Expand Up @@ -877,14 +877,20 @@ MooEditable.UI.Button = new Class({
if (this.active) this.el.removeClass('onActive');
if (!this.disabled) return;
this.disabled = false;
this.el.removeClass('disabled').set('opacity', 1);
this.el.removeClass('disabled').set({
disabled: false,
opacity: 1
});
return this;
},

disable: function(){
if (this.disabled) return;
this.disabled = true;
this.el.addClass('disabled').set('opacity', 0.4);
this.el.addClass('disabled').set({
disabled: true,
opacity: 0.4
});
return this;
},

Expand Down

0 comments on commit a175c09

Please sign in to comment.