aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2017-09-09 17:09:08 +0200
committerTristan Darricau <github@nicofuma.fr>2017-09-09 17:09:08 +0200
commite465af28d11d97b4a48efb2dc9bb277921b63def (patch)
tree859be1caea7b73bd55f0309b78aaa4e88ce03d92
parente767b753a4b417dd2ab3cb9e58784235b84c0354 (diff)
parent6a96249e24de1037d513721c21273e13e1870ebf (diff)
downloadforums-e465af28d11d97b4a48efb2dc9bb277921b63def.tar
forums-e465af28d11d97b4a48efb2dc9bb277921b63def.tar.gz
forums-e465af28d11d97b4a48efb2dc9bb277921b63def.tar.bz2
forums-e465af28d11d97b4a48efb2dc9bb277921b63def.tar.xz
forums-e465af28d11d97b4a48efb2dc9bb277921b63def.zip
Merge pull request #4941 from Elsensee/ticket/15149
[ticket/15149] Fix Ctrl+Submit action on posting * github.com:phpbb/phpbb: [ticket/15149] Fix Ctrl+Submit action on posting
-rw-r--r--phpBB/assets/javascript/editor.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/assets/javascript/editor.js b/phpBB/assets/javascript/editor.js
index 332ab42e37..23244f5a40 100644
--- a/phpBB/assets/javascript/editor.js
+++ b/phpBB/assets/javascript/editor.js
@@ -417,7 +417,7 @@ function getCaretPosition(txtarea) {
$('textarea').on('keydown', function (e) {
if (e.which === 13 && (e.metaKey || e.ctrlKey)) {
- $(this).closest('form').submit();
+ $(this).closest('form').find(':submit').click();
}
});
});