diff options
author | jenters <github@darkdark.net> | 2010-09-29 12:32:43 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-10-04 10:40:27 -0400 |
commit | c3145b691b0d028f94fc43c035047d532de94112 (patch) | |
tree | 292d0e3fecb8366baf20344d629847f9e5def9fb /ui/jquery.ui.tabs.js | |
parent | e66cdfcf59f3a03bb3c49337f8c11da0a236b337 (diff) | |
download | jquery-ui-c3145b691b0d028f94fc43c035047d532de94112.tar.gz jquery-ui-c3145b691b0d028f94fc43c035047d532de94112.zip |
Tab: modified init to display correct content of misordered div when hash present in url. Fixed #6125 - Incorrect selection of tab on init with hash in url and misordered divs
Diffstat (limited to 'ui/jquery.ui.tabs.js')
-rw-r--r-- | ui/jquery.ui.tabs.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index 7f7a631ee..ad99a99b7 100644 --- a/ui/jquery.ui.tabs.js +++ b/ui/jquery.ui.tabs.js @@ -210,13 +210,13 @@ $.widget( "ui.tabs", { this.lis.removeClass( "ui-tabs-selected ui-state-active" ); // check for length avoids error when initializing empty list if ( o.selected >= 0 && this.anchors.length ) { - this.panels.eq( o.selected ).removeClass( "ui-tabs-hide" ); + $( self._sanitizeSelector( self.anchors[ o.selected ].hash ) ).removeClass( "ui-tabs-hide" ); this.lis.eq( o.selected ).addClass( "ui-tabs-selected ui-state-active" ); // seems to be expected behavior that the show callback is fired self.element.queue( "tabs", function() { self._trigger( "show", null, - self._ui( self.anchors[ o.selected ], self.panels[ o.selected ] ) ); + self._ui( self.anchors[ o.selected ], $( self._sanitizeSelector( self.anchors[ o.selected ].hash ) ) ) ); }); this.load( o.selected ); |