aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2012-11-19 08:37:41 -0500
committerMike Sherov <mike.sherov@gmail.com>2012-11-19 08:37:41 -0500
commitcc7df712cc4ca90f6d6db599c5ff91b690921581 (patch)
tree5cb37de0e5e6aac4163a543fc0fb6253ac82c42e /ui
parent4334b5d4f1113ef751cb6738d8b2a60467a700e4 (diff)
downloadjquery-ui-cc7df712cc4ca90f6d6db599c5ff91b690921581.tar.gz
jquery-ui-cc7df712cc4ca90f6d6db599c5ff91b690921581.zip
Button: properly escape button names. Fixes #7505 - Button: Buttonset not applied to radio group with quotation/apostrophe in name.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.button.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js
index db04b63b8..508a0424a 100644
--- a/ui/jquery.ui.button.js
+++ b/ui/jquery.ui.button.js
@@ -29,6 +29,7 @@ var lastActive, startXPos, startYPos, clickDragged,
form = radio.form,
radios = $( [] );
if ( name ) {
+ name = name.replace( /'/g, "\\'" );
if ( form ) {
radios = $( form ).find( "[name='" + name + "']" );
} else {