X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/3b5cf11889534f64588a9dabc008e745d2c67c3a..0a956f5ab638ecce28608fd8f48bd7c9f761ba63:/forum/skins/default/templates/answer_edit.html diff --git a/forum/skins/default/templates/answer_edit.html b/forum/skins/default/templates/answer_edit.html index 4265a3e..c9d8466 100644 --- a/forum/skins/default/templates/answer_edit.html +++ b/forum/skins/default/templates/answer_edit.html @@ -35,12 +35,15 @@ }); - function submitClicked(e) { + function submitClicked(e, f) { if(!(browserTester('chrome') || browserTester('safari'))) { $("input.submit")[0].disabled=true; $("input.submit")[1].disabled=true; } window.removeEventListener('beforeunload', beforeUnload, true); + if (f) { + f.submit(); + } } function beforeUnload(e) { @@ -72,6 +75,7 @@
{% trans "toggle preview" %} + {% if settings.WIKI_ON %}
{{ form.wiki }} {{ form.wiki.label_tag }} @@ -86,8 +90,8 @@
{{ form.summary.help_text }}
- - + +