Blur buttons on submitting a zephyrgram.

This way the user can continue using the keyboard to navigate
after sending a message, without pressing additional keys.

(imported from commit 014997194f546fe56da063e19d3818e949a3ee7e)
This commit is contained in:
Luke Faraone 2012-08-31 16:28:37 -04:00
parent 647d6ab288
commit 29a41d992e
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ $(function() {
.text('Sending')
.stop(true).fadeTo(0,1);
buttons.attr('disabled', 'disabled');
buttons.blur()
},
success: function (resp, statusText, xhr, form) {
form.find('textarea').val('');