From cbe7fc32eb9bb60507b6161767c6de9a29d66bf5 Mon Sep 17 00:00:00 2001 From: Dale Kocian Date: Mon, 15 Oct 2012 17:27:27 -0400 Subject: [PATCH] Button: added replace on radio name to escape quotes. Fixed #7505 - Button: Buttonset not applied to radio group with quotation/apostrophe in name --- ui/jquery.ui.button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js index 5ae52648886..10f1874c679 100644 --- a/ui/jquery.ui.button.js +++ b/ui/jquery.ui.button.js @@ -25,7 +25,7 @@ var lastActive, startXPos, startYPos, clickDragged, }, 1 ); }, radioGroup = function( radio ) { - var name = radio.name, + var name = radio.name.replace( /'/g, "\\'" ), form = radio.form, radios = $( [] ); if ( name ) {