]> source.dussan.org Git - jquery-ui.git/commitdiff
Tabs: Wrap attribute value in quotes when querying. Fixes #8207 - Tabs: Error with...
authorScott González <scott.gonzalez@gmail.com>
Thu, 22 Mar 2012 17:17:17 +0000 (13:17 -0400)
committerScott González <scott.gonzalez@gmail.com>
Thu, 22 Mar 2012 17:17:34 +0000 (13:17 -0400)
(cherry picked from commit adbc2733bbd4d4c117dd2e0f31d5156e2913bfd1)

ui/jquery.ui.tabs.js

index 4c850b98ed53ef5738a73cde1ab86aa22efd1700..5bb544889d620a5e40172a3a54e5869132bb9242 100644 (file)
@@ -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;