From fd9dcd473f774a1e6cdcb619eb84f23559432c07 Mon Sep 17 00:00:00 2001 From: Smith Date: Sun, 8 May 2022 22:39:45 +0200 Subject: [PATCH] workaround reset bug2 --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index b588a59..2efa051 100644 --- a/index.html +++ b/index.html @@ -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(); } }); });