Skip to content

Commit

Permalink
Reintroduce the missing js form submit handler (#1342)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevecrozz committed Aug 5, 2018
1 parent a291aa9 commit 98bcaec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/assets/javascripts/errbit.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ $(function() {
"?copy_attributes_from=" + $(this).val();
});

$('input[type=submit][data-action]').on('click', function() {
$(this).closest('form').attr('action', $(this).attr('data-action'));
});

$('.notice-pagination').each(function() {
$.pjax.defaults = {timeout: 2000};

Expand Down

0 comments on commit 98bcaec

Please sign in to comment.