Fix display of hidden items.

This commit is contained in:
Graham Triggs 2017-04-30 18:21:11 +01:00
parent bc5b119c12
commit b68eb76008
4 changed files with 5 additions and 5 deletions

View file

@ -18,7 +18,7 @@
<span class="hideThis">&nbsp;</span> <span class="hideThis">&nbsp;</span>
<script type="text/javascript" > <script type="text/javascript" >
$('span.hideThis').parent().parent().addClass("hideThis"); $('span.hideThis').parent().parent().addClass("hideThis");
if ( $('h3#relatedBy-Authorship').attr('class').length == 0 ) { if ( jQuery.isEmptyObject($('h3#relatedBy-Authorship').attr('class')) ) {
$('h3#relatedBy-Authorship').addClass('hiddenPubs'); $('h3#relatedBy-Authorship').addClass('hiddenPubs');
} }
$('span.hideThis').parent().remove(); $('span.hideThis').parent().remove();

View file

@ -17,8 +17,8 @@
<span class="hideThis">&nbsp;</span> <span class="hideThis">&nbsp;</span>
<script type="text/javascript" > <script type="text/javascript" >
$('span.hideThis').parent().parent().addClass("hideThis"); $('span.hideThis').parent().parent().addClass("hideThis");
if ( $('h3#researchOverview').attr('class').length == 0 ) { if ( jQuery.isEmptyObject($('h3#RO_0000053').attr('class')) ) {
$('h3#researchOverview').addClass('hiddenGrants'); $('h3#RO_0000053').addClass('hiddenGrants');
} }
$('span.hideThis').parent().remove(); $('span.hideThis').parent().remove();
</script> </script>

View file

@ -17,7 +17,7 @@
<span class="hideThis">&nbsp;</span> <span class="hideThis">&nbsp;</span>
<script type="text/javascript" > <script type="text/javascript" >
$('span.hideThis').parent().parent().addClass("hideThis"); $('span.hideThis').parent().parent().addClass("hideThis");
if ( $('h3#RO_0000053-ResearcherRole').attr('class').length == 0 ) { if ( jQuery.isEmptyObject($('h3#RO_0000053-ResearcherRole').attr('class')) ) {
$('h3#RO_0000053-ResearcherRole').addClass('hiddenGrants'); $('h3#RO_0000053-ResearcherRole').addClass('hiddenGrants');
} }
$('span.hideThis').parent().remove(); $('span.hideThis').parent().remove();

View file

@ -17,7 +17,7 @@
<span class="hideThis">&nbsp;</span> <span class="hideThis">&nbsp;</span>
<script type="text/javascript" > <script type="text/javascript" >
$('span.hideThis').parent().parent().addClass("hideThis"); $('span.hideThis').parent().parent().addClass("hideThis");
if ( $('h3#relatedBy-Position').attr('class').length == 0 ) { if ( jQuery.isEmptyObject($('h3#relatedBy-Position').attr('class')) ) {
$('h3#relatedBy-Position').addClass('hiddenPeople'); $('h3#relatedBy-Position').addClass('hiddenPeople');
} }
$('span.hideThis').parent().remove(); $('span.hideThis').parent().remove();