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 %}