NIHVIVO-if all grants or pubs are hidden, the manage link should still be displayed

This commit is contained in:
tworrall 2012-06-27 19:16:24 +00:00
parent a59d3c872d
commit c3d67a7872
3 changed files with 21 additions and 27 deletions

View file

@ -98,15 +98,5 @@ $(document).ready(function(){
return false;
});
// if there are no selected pub, hide the manage link; same for grants
if ( $('ul#authorInAuthorshipList').children('li').length < 1 ) {
$('a#managePropLink').hide();
}
if ( $('ul#hasResearcherRoleList').children('li').length < 1 &&
$('ul#hasPrincipalInvestigatorRoleList').children('li').length < 1 &&
$('ul#hasCo-PrincipalInvestigatorRoleList').children('li').length < 1 &&
$('ul#hasInvestigatorRoleList').children('li').length < 1 ) {
$('a#manageGrantLink').hide();
}
});