aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-03-04 02:00:32 +0000
committerScott González <scott.gonzalez@gmail.com>2010-03-04 02:00:32 +0000
commitb636ad6997941ab6a1891fb90454096285adc1e1 (patch)
tree4955ebc32a6f727adaf7eaf41716bf35b6b3672b /ui
parent301eb30ac1b72763a5800c226e8dab3322d402a5 (diff)
downloadjquery-ui-b636ad6997941ab6a1891fb90454096285adc1e1.tar.gz
jquery-ui-b636ad6997941ab6a1891fb90454096285adc1e1.zip
Button: quote the value when searching for attributes.
Fixes #5262 - Buttonset not working on inputs with Arrays in name Attribute. Thanks Zidane.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.button.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js
index 9adf0c193..fd01cf750 100644
--- a/ui/jquery.ui.button.js
+++ b/ui/jquery.ui.button.js
@@ -89,9 +89,9 @@ $.widget( "ui.button", {
radios;
if ( name ) {
if ( form ) {
- radios = $( form ).find( "[name=" + name + "]" );
+ radios = $( form ).find( "[name='" + name + "']" );
} else {
- radios = $( "[name=" + name + "]", radio.ownerDocument )
+ radios = $( "[name='" + name + "']", radio.ownerDocument )
.filter(function() {
return !this.form;
});