aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-03-22 13:17:17 -0400
committerScott González <scott.gonzalez@gmail.com>2012-03-22 13:17:34 -0400
commit090ce4369d12751f2e55e62f6cc7f7fbc5dc6f2a (patch)
treef736597d3605ace74dda5a87e7199eeff945d71a /ui
parentc21aa07c1baf506034eef109db1482509f9ae9ea (diff)
downloadjquery-ui-090ce4369d12751f2e55e62f6cc7f7fbc5dc6f2a.tar.gz
jquery-ui-090ce4369d12751f2e55e62f6cc7f7fbc5dc6f2a.zip
Tabs: Wrap attribute value in quotes when querying. Fixes #8207 - Tabs: Error with href selector.
(cherry picked from commit adbc2733bbd4d4c117dd2e0f31d5156e2913bfd1)
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.tabs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js
index 4c850b98e..5bb544889 100644
--- a/ui/jquery.ui.tabs.js
+++ b/ui/jquery.ui.tabs.js
@@ -427,7 +427,7 @@ $.widget( "ui.tabs", {
// meta-function to give users option to provide a href string instead of a numerical index.
// also sanitizes numerical indexes to valid values.
if ( typeof index == "string" ) {
- index = this.anchors.index( this.anchors.filter( "[href$=" + index + "]" ) );
+ index = this.anchors.index( this.anchors.filter( "[href$='" + index + "']" ) );
}
return index;