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
|
$('.tab_content').hide(); // hide all tab content
|
||||||
|
|
||||||
var activeTab = $(this).find('a').attr('href');
|
var activeTab = $(this).find('a').attr('href');
|
||||||
|
if (activeTab.match(/^#.*/g)) {
|
||||||
$(activeTab).fadeIn(); // fade in the active tab content
|
$(activeTab).fadeIn(); // fade in the active tab content
|
||||||
return false;
|
return false;
|
||||||
|
} else {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user