Refocus in the content box after you change your Enter-sends state.

That way you can continue typing or press Enter to send.

(imported from commit 45501211f95657c9a4f6aba4d9cd0c4232d75c63)
This commit is contained in:
Jessica McKellar 2013-07-19 12:09:43 -04:00
parent df9daf70a2
commit 8e23848384
1 changed files with 5 additions and 0 deletions

View File

@ -169,6 +169,11 @@ exports.initialize = function () {
} else { } else {
send_button.fadeIn(); send_button.fadeIn();
} }
// Refocus in the content box so you can continue typing or
// press Enter to send.
$("#new_message_content").focus();
return $.ajax({ return $.ajax({
dataType: 'json', dataType: 'json',
url: '/json/change_enter_sends', url: '/json/change_enter_sends',