Skip to content

Commit

Permalink
fix: put function call in separate document.ready function
Browse files Browse the repository at this point in the history
This way our custom function is still called, even if the function call
above it fails - which it does, if the apScrollTop thingy is not
installed.
  • Loading branch information
b1rger committed Oct 10, 2023
1 parent ff47d2a commit dd51f5b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
console.log('apScrollTop: init');
}
});
$(document).on('submit', 'form.form.ajax_form', unbind_ajax_forms);
});
$(document).ready(function() {
$(document).on('submit', 'form.form.ajax_form', unbind_ajax_forms);
});
</script>
<script type="text/javascript">
Expand Down

0 comments on commit dd51f5b

Please sign in to comment.