Skip to content

Commit

Permalink
allow javascript in search form (so dropdowns work)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahamelers committed Jul 30, 2024
1 parent fc8f58c commit 8c988fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/stash_engine/admin_dashboard/results.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ urlparams.set('page', '<%= params[:page] %>')
window.history.pushState({}, null, `${window.location.pathname}?${urlparams.toString()}`)
document.getElementById('search_results').innerHTML = "<%= escape_javascript(render(partial: 'results')) %>";
document.getElementById('save_buttons').innerHTML = "<%= escape_javascript(render(partial: 'save_buttons')) %>";
document.getElementById('search_form').innerHTML = "<%= escape_javascript(render(partial: 'search_form')) %>";
$('#search_form').html = "<%= escape_javascript(render(partial: 'search_form')) %>";
document.getElementById('edit_fields-help').addEventListener('click', (e) => {
e.preventDefault()
document.getElementById('edit_fields-form').classList.toggle('show-help')
Expand Down

0 comments on commit 8c988fa

Please sign in to comment.