Tabs: Wrap attribute value in quotes when querying. Fixes #8207 - Tabs: Error with href selector.

This commit is contained in:
Scott González 2012-03-22 13:17:17 -04:00
parent 9bb9141f29
commit adbc2733bb

View 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;