From 9cabe8403e9755b8226ed2ffdd1034d98de9dcaa Mon Sep 17 00:00:00 2001 From: Scott González Date: Thu, 18 Feb 2010 02:43:23 +0000 Subject: Buttons: Removed the logic for triggering click events on checkboxes and radio buttons. This logic was actually causing the opposite functionality from what we wanted. Fixes #5195 - .buttonset() prevents change event from being catchable. --- ui/jquery.ui.button.js | 6 ------ 1 file changed, 6 deletions(-) (limited to 'ui') diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js index 47007130b..40b0ee48d 100644 --- a/ui/jquery.ui.button.js +++ b/ui/jquery.ui.button.js @@ -73,9 +73,6 @@ $.widget( "ui.button", { return; } $( this ).toggleClass( "ui-state-active" ); - self.element - .attr( "checked", !self.element[0].checked ) - .click(); self.buttonElement.attr( "aria-pressed", self.element[0].checked ); }); } else if ( this.type === "radio") { @@ -84,9 +81,6 @@ $.widget( "ui.button", { return; } $( this ).addClass( "ui-state-active" ); - self.element - .attr( "checked", true ) - .click(); self.buttonElement.attr( "aria-pressed", true ); var radio = self.element[ 0 ], -- cgit v1.2.3