Commit 72db22d3 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

send wall message with crtl+enter

parent 316cf619
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment