Commit d8d802e1003e93bc375e1a350fb7c9a72ab0415c
1 parent
038dcebe
Exists in
master
and in
1 other branch
removed enter to submit submit
Showing
2 changed files
with
11 additions
and
11 deletions
Show diff stats
static/js/topic.js
... | ... | @@ -58,15 +58,15 @@ function new_question(type, question, tries, progress) { |
58 | 58 | |
59 | 59 | $('#question_div').animateCSS('bounceInDown'); |
60 | 60 | |
61 | - // enable shift+enter to submit | |
62 | - // $("input:text, input:radio, input:checkbox").keydown(function (e) { | |
63 | - // if (e.keyCode == 13) { | |
64 | - // e.preventDefault(); | |
65 | - // if (e.shiftKey) { | |
66 | - // $("#submit").click(); | |
67 | - // } | |
68 | - // return false; | |
69 | - // }}); | |
61 | + // enable shift+enter to submit | |
62 | + $("input:text, input:radio, input:checkbox").keydown(function (e) { | |
63 | + if (e.keyCode == 13) { | |
64 | + e.preventDefault(); | |
65 | + // if (e.shiftKey) { | |
66 | + // $("#submit").click(); | |
67 | + // } | |
68 | + return false; | |
69 | + }}); | |
70 | 70 | } |
71 | 71 | |
72 | 72 | ... | ... |
templates/topic.html
... | ... | @@ -111,8 +111,8 @@ |
111 | 111 | |
112 | 112 | <div id="solution"></div> |
113 | 113 | |
114 | - <a class="btn btn-primary btn-lg btn-block my-5" id="submit" data-toggle="tooltip" data-placement="right" title="Shift-Enter" href="#solution"></a> | |
115 | - | |
114 | + <a class="btn btn-primary btn-lg btn-block my-5" id="submit" data-toggle="tooltip" data-placement="right" href="#solution"></a> | |
115 | + <!-- title="Shift-Enter" --> | |
116 | 116 | </div> |
117 | 117 | |
118 | 118 | </body> | ... | ... |