Skip to content

Commit

Permalink
Tabs: Handle empty hrefs for IE6/7 as invalid. Fixes #5755 - Tabs: ta…
Browse files Browse the repository at this point in the history
…bs with an empty href are enabled in IE6/7.
  • Loading branch information
scottgonzalez committed Sep 3, 2010
1 parent 78540e2 commit 1b31765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down

0 comments on commit 1b31765

Please sign in to comment.