Commit 24b68fdada1fbcc4874c32703aac0ca7ef1d52b4
1 parent
c91300e4
Exists in
spb-stable
and in
2 other branches
fix ctrl+enter note send
use argument e instead of event
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/assets/javascripts/notes.js.coffee
... | ... | @@ -55,7 +55,7 @@ class Notes |
55 | 55 | |
56 | 56 | @notes_forms = '.js-main-target-form textarea, .js-discussion-note-form textarea' |
57 | 57 | $(document).on('keypress', @notes_forms, (e)-> |
58 | - if event.keyCode == 10 || (event.ctrlKey && event.keyCode == 13) | |
58 | + if e.keyCode == 10 || (e.ctrlKey && e.keyCode == 13) | |
59 | 59 | $(@).parents('form').submit() |
60 | 60 | ) |
61 | 61 | ... | ... |