Tabs: Handle empty hrefs for IE6/7 as invalid. Fixes #5755 - Tabs: tabs with an empty href are enabled in IE6/7.

This commit is contained in:
Scott González
2010-09-03 13:35:05 -04:00
parent 78540e2c0c
commit 1b31765655

View File

@@ -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 );