Merge pull request #20355 from nextcloud/fix/comments/clear-input/19585

Clear comment on successful post
This commit is contained in:
John Molakvoæ 2020-04-09 13:46:20 +02:00 committed by GitHub
commit 66b743385e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 21 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
/* eslint-disable */ /* eslint-disable */
/* /**
* Copyright (c) 2016 * Copyright (c) 2016
* *
* This file is licensed under the Affero General Public License version 3 * This file is licensed under the Affero General Public License version 3
@ -597,9 +597,12 @@
_onSubmitSuccess: function(model, $form) { _onSubmitSuccess: function(model, $form) {
var $submit = $form.find('.submit') var $submit = $form.find('.submit')
var $loading = $form.find('.submitLoading') var $loading = $form.find('.submitLoading')
var $message = $form.find('.message')
$submit.removeClass('hidden') $submit.removeClass('hidden')
$loading.addClass('hidden') $loading.addClass('hidden')
$message.prop('contenteditable', true)
$message.text('')
}, },
_commentBodyHTML2Plain: function($el) { _commentBodyHTML2Plain: function($el) {