Fix: Comment edit cancel edit context item not shown

This commit is contained in:
buddh4 2018-07-26 17:52:29 +02:00
parent 7cd373f4fa
commit 24d086a150
3 changed files with 3 additions and 2 deletions

View File

@ -17,6 +17,7 @@ HumHub Change Log
- Fix: ui.addition.applyTo with filter ignores first filter index
- Fix: introduction tour not working
- Chng: Moved static js dependencies from `static/resources` into `static/js`
- Fix: Comment edit cancel edit context item not shown
1.3.0-beta.2 (July 18, 2018)
-----------------------------

View File

@ -83,7 +83,6 @@ humhub.module('comment', function (module, require, $) {
var that = this;
client.post(evt, {dataType: 'html'}).then(function (response) {
that.$.find('.comment_edit_content').replaceWith(response.html);
that.getRichtext().focus();
that.$.find('.comment-cancel-edit-link').show();
that.$.find('.comment-edit-link').hide();
}).finally(function () {

View File

@ -23,7 +23,8 @@ $submitUrl = Url::to(['/comment/comment/edit', 'id' => $comment->id, 'contentMod
<div class="comment-create-input-group">
<?= $form->field($comment, 'message')->widget(RichTextField::class, [
'id' => 'comment_input_'.$comment->id,
'placeholder' => Yii::t('CommentModule.views_edit', 'Edit your comment...')
'placeholder' => Yii::t('CommentModule.views_edit', 'Edit your comment...'),
'focus' => true
])->label(false) ?>
<div class="comment-buttons">