X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/3b5cf11889534f64588a9dabc008e745d2c67c3a..97437472d927023d91b7fbb1a35e57af373bfb7e:/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..9409f0d 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) { @@ -60,7 +63,8 @@