Add check for tabs to be sure that an ID is given as href
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user