mirror of
https://github.com/unraid/webgui.git
synced 2026-04-30 06:49:24 -05:00
Add event to form to confirm open changes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user