send wall message with crtl+enter
This commit is contained in:
parent
316cf61965
commit
72db22d385
2 changed files with 5 additions and 0 deletions
|
@ -61,6 +61,10 @@
|
|||
filename = $(this).val().replace(/^.*[\\\/]/, '')
|
||||
form.find(".js-attachment-filename").text(filename)
|
||||
|
||||
form.find('.note_text').keydown (e) ->
|
||||
if e.ctrlKey && e.keyCode == 13
|
||||
form.find('.js-comment-button').submit()
|
||||
|
||||
form.show()
|
||||
|
||||
renderNote: (note) ->
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
%span.file_name.js-attachment-filename File name...
|
||||
= f.file_field :attachment, class: "js-note-attachment-input hide"
|
||||
|
||||
.hint.pull-right CTRL + Enter to send message
|
||||
.clearfix
|
||||
|
||||
:javascript
|
||||
|
|
Loading…
Reference in a new issue