Skip to content

Commit

Permalink
logic to avoid redisplay tags hidden from results
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-TBT committed Jul 21, 2024
1 parent 2551c8b commit 6ffdda9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion omero_tagsearch/templates/omero_tagsearch/tagnav.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
var inOwnershipList = $.inArray(optionValue, ownership_l) !== -1;
if (filter_user && !inOwnershipList) {
$(this).hide();
} else {
} else if (!$(this).hasClass('hidfromresults')) {
$(this).show();
}
});
Expand Down Expand Up @@ -121,8 +121,10 @@
&& (data.navdata.length != 0))
|| (filter_user && ($.inArray(tag_value, ownership_l) == -1))) {
$(this).hide();
$(this).addClass('hidfromresults');
} else {
$(this).show();
$(this).removeClass('hidfromresults');
}
});

Expand Down

0 comments on commit 6ffdda9

Please sign in to comment.