diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-11-27 13:40:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-27 13:40:03 +0100 |
commit | cfae590ac93f8b5c9c633aafbf205f54a7400201 (patch) | |
tree | 015d0fbb25e57e208ec061c5d1e2711dd96bb69d /apps/comments/js | |
parent | e02229e412bcca562a892e3c0692f7ac2ab43c4a (diff) | |
parent | b248c53c6a8a2d420256921ca4889fc553ce8fee (diff) | |
download | nextcloud-server-cfae590ac93f8b5c9c633aafbf205f54a7400201.tar.gz nextcloud-server-cfae590ac93f8b5c9c633aafbf205f54a7400201.zip |
Merge pull request #7266 from nextcloud/fix-input-field-not-disabled-while-a-comment-is-being-sent
Fix input field not disabled while a comment is being sent
Diffstat (limited to 'apps/comments/js')
-rw-r--r-- | apps/comments/js/commentstabview.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/comments/js/commentstabview.js b/apps/comments/js/commentstabview.js index d64b70494fd..5767ecfc9da 100644 --- a/apps/comments/js/commentstabview.js +++ b/apps/comments/js/commentstabview.js @@ -321,7 +321,7 @@ this.$container.append($comment); } this._postRenderItem($comment); - $('#commentsTabView').find('.newCommentForm div.message').text('').prop('disabled', false); + $('#commentsTabView').find('.newCommentForm div.message').text('').prop('contenteditable', true); // we need to update the model, because it consists of client data // only, but the server might add meta data, e.g. about mentions @@ -632,7 +632,7 @@ return; } - $commentField.prop('disabled', true); + $commentField.prop('contenteditable', false); $submit.addClass('hidden'); $loading.removeClass('hidden'); @@ -685,7 +685,7 @@ _onSubmitError: function($form, commentId) { $form.find('.submit').removeClass('hidden'); $form.find('.submitLoading').addClass('hidden'); - $form.find('.message').prop('disabled', false); + $form.find('.message').prop('contenteditable', true); if(!_.isUndefined(commentId)) { OC.Notification.show(t('comments', 'Error occurred while updating comment with id {id}', {id: commentId}), {type: 'error'}); |