X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/2de860e5f67f04b070c51fa9c1241b773e52b816..c07bef148aa59e35fe84e0c0cc8acff2cb5c6ee5:/forum/skins/default/templates/ask.html diff --git a/forum/skins/default/templates/ask.html b/forum/skins/default/templates/ask.html index 7b34ba4..4e64fba 100644 --- a/forum/skins/default/templates/ask.html +++ b/forum/skins/default/templates/ask.html @@ -61,11 +61,14 @@ }); - function submitClicked(e) { + function submitClicked(e, f) { if(!(browserTester('chrome') || browserTester('safari'))) { $("input.submit")[0].disabled=true; } window.removeEventListener('beforeunload', beforeUnload, true); + if (f) { + f.submit(); + } } function beforeUnload(e) { @@ -141,9 +144,9 @@ {{ form.tags.help_text }}

{% if not request.user.is_authenticated %} - + {% else %} - + {% endif %}