fixed bug that disabled tabs when navigating from the home page map while not logged in
This commit is contained in:
parent
dfa1abd2ec
commit
fe7106e22b
1 changed files with 19 additions and 16 deletions
|
@ -69,6 +69,8 @@ $(document).ready(function(){
|
||||||
location.hash = location.hash.replace(/\s+/g, '');
|
location.hash = location.hash.replace(/\s+/g, '');
|
||||||
if ( location.hash.indexOf("map") >= 0 ) {
|
if ( location.hash.indexOf("map") >= 0 ) {
|
||||||
// get the name of the group that contains the geographicFocusOf property.
|
// get the name of the group that contains the geographicFocusOf property.
|
||||||
|
// if it doesn't exist, don't do anything.
|
||||||
|
if ( $('h3#geographicFocusOf').length ) {
|
||||||
var tabName = $('h3#geographicFocusOf').parent('article').parent('div').attr("id");
|
var tabName = $('h3#geographicFocusOf').parent('article').parent('div').attr("id");
|
||||||
tabName = tabName.replace("Group","");
|
tabName = tabName.replace("Group","");
|
||||||
tabNameCapped = tabName.charAt(0).toUpperCase() + tabName.slice(1);
|
tabNameCapped = tabName.charAt(0).toUpperCase() + tabName.slice(1);
|
||||||
|
@ -86,6 +88,7 @@ $(document).ready(function(){
|
||||||
// show the selected tab section
|
// show the selected tab section
|
||||||
$('section#' + tabName).show();
|
$('section#' + tabName).show();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// if there is a more link, "click" more to show all the researchers
|
// if there is a more link, "click" more to show all the researchers
|
||||||
// we need the timeout delay so that the more link can get rendered
|
// we need the timeout delay so that the more link can get rendered
|
||||||
setTimeout(geoFocusExpand,250);
|
setTimeout(geoFocusExpand,250);
|
||||||
|
|
Loading…
Add table
Reference in a new issue