Add event to form to confirm open changes

This commit is contained in:
bergware
2021-06-04 20:10:33 +02:00
parent 35a0bdc231
commit bbd59b1630
@@ -689,7 +689,6 @@ $(function() {
});});
// add leave confirmation when form has changed without applying (opt-in function)
$('form.js-confirm-leave').on('change',function(e){
e.preventDefault();
formHasUnsavedChanges=true;
}).on('submit',function(e){
formHasUnsavedChanges=false;