Add check for tabs to be sure that an ID is given as href

This commit is contained in:
Eike Foken
2011-09-28 15:51:42 +02:00
parent 9fc5223406
commit 48379dd2e7

View File

@@ -122,8 +122,12 @@ $(document).ready(function() {
$('.tab_content').hide(); // hide all tab content
var activeTab = $(this).find('a').attr('href');
$(activeTab).fadeIn(); // fade in the active tab content
return false;
if (activeTab.match(/^#.*/g)) {
$(activeTab).fadeIn(); // fade in the active tab content
return false;
} else {
return true;
}
});
/*