diff options
-rw-r--r-- | ui/jquery.ui.button.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js index ec7008dd5..854fdc8e3 100644 --- a/ui/jquery.ui.button.js +++ b/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(); }, |