X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/3b5cf11889534f64588a9dabc008e745d2c67c3a..40e2851e2e2bf5e35063597b30ada01d06d2cc11:/forum/skins/default/templates/question.html?ds=inline diff --git a/forum/skins/default/templates/question.html b/forum/skins/default/templates/question.html index 6407978..03ef8ee 100644 --- a/forum/skins/default/templates/question.html +++ b/forum/skins/default/templates/question.html @@ -10,10 +10,12 @@ {% load cache %} {% block metadescription %}{{question.summary}}{% endblock %} {% block metakeywords %}{{question.tagname_meta_generator}}{% endblock %} -{% block title %}{% spaceless %}{{ question.headline }}{% endspaceless %}{% endblock %} -{% block forejs %} +{% block meta %} +{% endblock %} +{% block title %}{% spaceless %}{{ question.headline }}{% endspaceless %}{% endblock %} +{% block forejs %} {% if not question.nis.closed %} @@ -43,11 +45,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) { @@ -218,6 +223,7 @@ {% trans "toggle preview" %} +
- + class="submit" style="float:left" onclick="submitClicked(event, this.form)"/> {% endif %}