Skip to content

Commit

Permalink
Use id instead of class as selector
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDancingClown committed Jul 3, 2024
1 parent dcb3e46 commit 2a1d721
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/assets/javascripts/admin/applications-filter.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ filterApplicationsDropdowns = () ->
dropdown = dropdownWrapper.find(".dropdown-toggle")
dropdown.focus().click()
else
search_query = $(this).closest(".new_search").find("#search_query").val()
search_query = $(this).closest("#new_search").find("#search_query").val()
console.log(search_query)
url = new URL($(this).data('url'), document.baseURI)
url.searchParams.set('[search][query]', search_query)
window.location = url
Expand Down

0 comments on commit 2a1d721

Please sign in to comment.