send wall message with crtl+enter

This commit is contained in:
Dmitriy Zaporozhets 2013-03-20 09:53:39 +02:00
parent 316cf61965
commit 72db22d385
2 changed files with 5 additions and 0 deletions

View file

@ -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) ->

View file

@ -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