Permalink
Browse files

Tabs: Handle empty hrefs for IE6/7 as invalid. Fixes #5755 - Tabs: ta…

…bs with an empty href are enabled in IE6/7.
  • Loading branch information...
1 parent 78540e2 commit 1b3176565561ccbd0c904620ae97690aff41b90b @scottgonzalez scottgonzalez committed Sep 3, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.tabs.js
View
2 ui/jquery.ui.tabs.js
@@ -129,7 +129,7 @@ $.widget( "ui.tabs", {
self.panels = self.panels.add( self._sanitizeSelector( href ) );
// remote tab
// prevent loading the page itself if href is just "#"
- } else if ( href !== "#" ) {
+ } else if ( href && href !== "#" ) {
// required for restore on destroy
$.data( a, "href.tabs", href );

0 comments on commit 1b31765

Please sign in to comment.