Skip to content
Permalink
Browse files

Button: Add disabled class on init if the disabled option is set to t…

…rue.

Fixes #5250 - Button: initializing with disabled = true isn't visually disabled.
  • Loading branch information
scottgonzalez committed Mar 2, 2010
1 parent 001a22a commit 64811c10ec6e9d1bb79ec4aa06b8eb1a1344532c
Showing with 4 additions and 0 deletions.
  1. +4 −0 ui/jquery.ui.button.js
@@ -141,6 +141,10 @@ $.widget( "ui.button", {
}
}

// TODO: pull out $.Widget's handling for the disabled option into
// $.Widget.prototype._setOptionDisabled so it's easy to proxy and can
// be overridden by individual plugins
$.Widget.prototype._setOption.call( this, "disabled", options.disabled );
this._resetButton();
},

0 comments on commit 64811c1

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