From ea1b983c39b2d49f98498e52196e20fc0357787e Mon Sep 17 00:00:00 2001 From: FabioL <1647128+loviuz@users.noreply.github.com> Date: Mon, 4 Nov 2024 17:29:49 +0100 Subject: [PATCH] fix: forzatura variabile content_was_modified --- editor.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor.php b/editor.php index cf1b9d9fa..3735e611e 100755 --- a/editor.php +++ b/editor.php @@ -524,6 +524,9 @@ if ($read_only || !empty($block_edit)) { var content_was_modified = false; + // Forzatura per annullare il cambio da eventi subito dopo il caricamento iniziale + setTimeout(function() { content_was_modified = false; }, 1000); + // Controllo se digito qualche valore o cambio qualche select $(".content input, .content textarea, .content select").bind("change paste keyup", function(event) { if (event.keyCode >= 32) {