From 652db5895c7c95c61e8e92770cffbf3c2fbea8d6 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 15 Sep 2018 00:49:47 +0200 Subject: [PATCH] Submit without asking --- templates/wikipage.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/wikipage.html b/templates/wikipage.html index 0281d31e..2bea45fe 100644 --- a/templates/wikipage.html +++ b/templates/wikipage.html @@ -12,6 +12,10 @@ edits = true; } + function onSubmit() { + edits = false; + } + window.onbeforeunload = function() { return edits ? "Modifiche non salvate" : null; } @@ -41,7 +45,7 @@


- +
{% endif %}