]> 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:17 +0000 (13:17 -0400)
ui/jquery.ui.tabs.js

index ba48c37700d4c5fe4b1ec859c48a57103516ea12..c9300e69b2d707a284fe4360fb4d098b876183a0 100644 (file)
@@ -434,7 +434,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;