mirror of
https://github.com/a-sync/game-server-watcher.git
synced 2026-07-22 05:41:43 -04:00
workaround reset bug2
This commit is contained in:
@@ -264,7 +264,7 @@
|
||||
"disable_array_add": 0,
|
||||
"disable_array_reorder": 1,
|
||||
"disable_array_delete": 0,
|
||||
"enable_array_copy": 0,
|
||||
"enable_array_copy": 1,
|
||||
"array_controls_top": 0,
|
||||
"disable_array_delete_all_rows": 1,
|
||||
"disable_array_delete_last_row": 1,
|
||||
@@ -462,11 +462,11 @@
|
||||
$('#save-config-reset').click(e => {
|
||||
e.preventDefault();
|
||||
if (!configEditor.isEnabled()) return;
|
||||
configEditor.setValue(editorCurrVal);
|
||||
configEditor.setValue(editorCurrVal, true);
|
||||
unsavedChanges = false;
|
||||
dismissSaveConfig();
|
||||
if (formCurrVal !== actualFormValues()) {
|
||||
document.location.href = document.location.pathname;
|
||||
document.location.reload();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user