]> source.dussan.org Git - jquery-ui.git/commitdiff
Button: no longer calls _resetButton() after changing the disabled option. Fixed...
authorDoug Neiner <doug@pixelgraphics.us>
Thu, 12 May 2011 05:16:06 +0000 (01:16 -0400)
committerScott González <scott.gonzalez@gmail.com>
Fri, 13 May 2011 00:48:55 +0000 (20:48 -0400)
(cherry picked from commit 8df834f68c4337cb6d128360c76a4621f050bd60)

ui/jquery.ui.button.js

index 19b1b416945461504d156750e3c87af5858598f6..a1be75d8e021b556541068295d65a2c397bf201d 100644 (file)
@@ -184,6 +184,7 @@ $.widget( "ui.button", {
                // $.Widget.prototype._setOptionDisabled so it's easy to proxy and can
                // be overridden by individual plugins
                this._setOption( "disabled", options.disabled );
+               this._resetButton();
        },
 
        _determineButtonType: function() {
@@ -251,6 +252,7 @@ $.widget( "ui.button", {
                        } else {
                                this.element.removeAttr( "disabled" );
                        }
+                       return;
                }
                this._resetButton();
        },