From d8d802e1003e93bc375e1a350fb7c9a72ab0415c Mon Sep 17 00:00:00 2001 From: Miguel BarĂ£o Date: Mon, 24 Dec 2018 14:18:05 +0000 Subject: [PATCH] removed enter to submit submit --- static/js/topic.js | 18 +++++++++--------- templates/topic.html | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/static/js/topic.js b/static/js/topic.js index 08d2ae9..d7548ee 100644 --- a/static/js/topic.js +++ b/static/js/topic.js @@ -58,15 +58,15 @@ function new_question(type, question, tries, progress) { $('#question_div').animateCSS('bounceInDown'); - // enable shift+enter to submit - // $("input:text, input:radio, input:checkbox").keydown(function (e) { - // if (e.keyCode == 13) { - // e.preventDefault(); - // if (e.shiftKey) { - // $("#submit").click(); - // } - // return false; - // }}); + // enable shift+enter to submit + $("input:text, input:radio, input:checkbox").keydown(function (e) { + if (e.keyCode == 13) { + e.preventDefault(); + // if (e.shiftKey) { + // $("#submit").click(); + // } + return false; + }}); } diff --git a/templates/topic.html b/templates/topic.html index 981de2e..accf95e 100644 --- a/templates/topic.html +++ b/templates/topic.html @@ -111,8 +111,8 @@
- - + + -- libgit2 0.21.2