Skip to content

Commit

Permalink
bs4 auth and consent back fix (#4339)
Browse files Browse the repository at this point in the history
call off on back listener to prevent duplicate firings
  • Loading branch information
charlienparker authored and bbodine1 committed Aug 29, 2024
1 parent 4cad317 commit 8475c88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/assets/javascripts/application.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ $(document).on('turbolinks:load', function () {
$('.filter-options').hide();
});

$('a.back').click(function(){
$('a.back').off('click');
$('a.back').on('click', function(){
parent.history.back();
return false;
});
Expand Down

0 comments on commit 8475c88

Please sign in to comment.