Skip to content
Permalink
Browse files

Button: remove disabled attribute from original element when option s…

…et to false
  • Loading branch information...
rdworth committed Mar 15, 2010
1 parent a842215 commit e3096c7abb24a9a3fa748a1c10bb2cd31e74cf94
Showing with 5 additions and 1 deletion.
  1. +5 −1 ui/jquery.ui.button.js
@@ -230,7 +230,11 @@ $.widget( "ui.button", {
_setOption: function( key, value ) {
$.Widget.prototype._setOption.apply( this, arguments );
if ( key === "disabled" ) {
this.element.attr("disabled", value);
if ( value ) {
this.element.attr( "disabled", true );
} else {
this.element.removeAttr( "disabled" );
}
}
this._resetButton();
},

0 comments on commit e3096c7

Please sign in to comment.
You can’t perform that action at this time.