Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Aug 3, 2022
2 parents b98a190 + d52ec83 commit 5fdfe6f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions assets/scripts/admin/organize.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ $(document).on('ready pjax:scriptcomplete', function(){
/**
* Show confirmation message when user leaves without saving
*/
window.onload = function() {
// Don't show the confirmation prompt for now. It doesn't work when "leaving" through PJAX,
// and it interferes with save.
/*window.onload = function() {
window.addEventListener("beforeunload", function (e) {
if (formSubmitting) {
return undefined;
Expand All @@ -86,7 +88,7 @@ window.onload = function() {
return confirmationMessage; //Gecko + Webkit, Safari, Chrome etc.
}
});
}
}*/

/**
* Fix big question part
Expand Down

0 comments on commit 5fdfe6f

Please sign in to comment.