зеркало из https://github.com/nextcloud/spreed.git
Merge pull request #545 from nextcloud/focus-again-on-new-message-input-after-sending-a-message
Focus again on new message input after sending a message
This commit is contained in:
Коммит
2fc857efa0
|
@ -302,6 +302,8 @@
|
|||
$form.find('.submitLoading').addClass('hidden');
|
||||
$form.find('.message').text('').prop('contenteditable', true);
|
||||
|
||||
$form.find('.message').focus();
|
||||
|
||||
// The new message does not need to be explicitly added to the list
|
||||
// of messages; it will be automatically fetched from the server
|
||||
// thanks to the auto-refresh of the list.
|
||||
|
@ -312,6 +314,8 @@
|
|||
$form.find('.submitLoading').addClass('hidden');
|
||||
$form.find('.message').prop('contenteditable', true);
|
||||
|
||||
$form.find('.message').focus();
|
||||
|
||||
OC.Notification.show(t('spreed', 'Error occurred while sending message'), {type: 'error'});
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче