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

send wall message with crtl+enter

parent 316cf619
...@@ -61,6 +61,10 @@ ...@@ -61,6 +61,10 @@
filename = $(this).val().replace(/^.*[\\\/]/, '') filename = $(this).val().replace(/^.*[\\\/]/, '')
form.find(".js-attachment-filename").text(filename) 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() form.show()
renderNote: (note) -> renderNote: (note) ->
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
%span.file_name.js-attachment-filename File name... %span.file_name.js-attachment-filename File name...
= f.file_field :attachment, class: "js-note-attachment-input hide" = f.file_field :attachment, class: "js-note-attachment-input hide"
.hint.pull-right CTRL + Enter to send message
.clearfix .clearfix
:javascript :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