workaround reset bug2

This commit is contained in:
Smith
2022-05-08 22:39:45 +02:00
parent a2f1f7edd2
commit fd9dcd473f

View File

@@ -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();
}
});
});