Skip to content
Permalink
Browse files

Button: fixed #5324 - button disabled state doesn't get refreshed whe…

…n disabled set on original element
  • Loading branch information...
rdworth committed Mar 15, 2010
1 parent e3096c7 commit 1489d7380d02828e6f496fba24679995c4fdae44
Showing with 4 additions and 0 deletions.
  1. +4 −0 ui/jquery.ui.button.js
@@ -240,6 +240,10 @@ $.widget( "ui.button", {
},

refresh: function() {
var isDisabled = this.element.is(":disabled");
if ( isDisabled !== this.options.disabled ) {
this._setOption( "disabled", isDisabled );
}
if ( this.type === "radio" ) {
radioGroup( this.element[0] ).each(function() {
if ( $( this ).is( ":checked" ) ) {

0 comments on commit 1489d73

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