mirror of
https://github.com/unraid/webgui.git
synced 2026-05-12 15:20:29 -05:00
Add event to form to confirm open changes
This commit is contained in:
@@ -692,7 +692,6 @@ $(function() {
|
||||
e.preventDefault();
|
||||
formHasUnsavedChanges=true;
|
||||
}).on('submit',function(e){
|
||||
e.preventDefault();
|
||||
formHasUnsavedChanges=false;
|
||||
});
|
||||
$(window).on('beforeunload',function(e){if (formHasUnsavedChanges) return '';}); // note: the browser creates its own popup window and warning message
|
||||
|
||||
Reference in New Issue
Block a user