Skip to content

Commit

Permalink
Followup bugfix to remove skip to search on *only* advanced search pa…
Browse files Browse the repository at this point in the history
…ge. Fixes TD-1396.
  • Loading branch information
seanaery committed Dec 17, 2024
1 parent 4032d96 commit b05a5dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/assets/javascripts/trln_argon/advanced_search_scope.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ Blacklight.onLoad(function() {
$(".blacklight-trln-advanced_search #search-navbar").remove();

// remove the skip link that leads to that mast search field
$("#skip-link a[href='#search_field']").remove();
$(".blacklight-catalog-advanced_search #skip-link a[href='#search_field']").remove();
$(".blacklight-trln-advanced_search #skip-link a[href='#search_field']").remove();

// change adv search scope
$(".blacklight-trln-advanced_search").length > 0 ? $('#option_trln').attr('checked',true) : $('#option_catalog').attr('checked',true);
Expand Down

0 comments on commit b05a5dd

Please sign in to comment.