Skip to content
Snippets Groups Projects
Commit bf597ae6 authored by Jared Hancock's avatar Jared Hancock
Browse files

Fix dialog boxes on backward pjax navigation

pjax:complete is only called after an AJAX page load. If a user navigates
forward or backward and the page loads from local cache, then pjax:complete
is not fired. pjax:end, however, is always fired.
parent bb62d566
No related branches found
No related tags found
No related merge requests found
...@@ -441,7 +441,7 @@ var scp_prep = function() { ...@@ -441,7 +441,7 @@ var scp_prep = function() {
}; };
$(document).ready(scp_prep); $(document).ready(scp_prep);
$(document).on('pjax:complete', scp_prep); $(document).on('pjax:end', scp_prep);
$(document).on('submit', 'form', function() { $(document).on('submit', 'form', function() {
// Reformat dates // Reformat dates
$('.dp', $(this)).each(function(i, e) { $('.dp', $(this)).each(function(i, e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment