[common] Fix bug 79531

This commit is contained in:
Alexey Koshelev
2026-02-10 12:05:56 +03:00
parent cceccae31f
commit 88146c91cc

View File

@ -211,6 +211,7 @@ define([
replyId = btn.attr('data-value'); replyId = btn.attr('data-value');
if (btn.hasClass('btn-edit-common')) { if (btn.hasClass('btn-edit-common')) {
me.fireEvent('comment:show', [commentId, false]);
if (!_.isUndefined(replyId)) { if (!_.isUndefined(replyId)) {
me.fireEvent('comment:closeEditing', [commentId]); me.fireEvent('comment:closeEditing', [commentId]);
me.fireEvent('comment:editReply', [commentId, replyId]); me.fireEvent('comment:editReply', [commentId, replyId]);
@ -237,7 +238,6 @@ define([
me.hookTextBox(); me.hookTextBox();
} }
} }
me.fireEvent('comment:show', [commentId, false]);
} else if (btn.hasClass('btn-delete')) { } else if (btn.hasClass('btn-delete')) {
if (!_.isUndefined(replyId)) { if (!_.isUndefined(replyId)) {
me.fireEvent('comment:removeReply', [commentId, replyId]); me.fireEvent('comment:removeReply', [commentId, replyId]);
@ -250,6 +250,7 @@ define([
me.fireEvent('comment:closeEditing'); me.fireEvent('comment:closeEditing');
readdresolves(); readdresolves();
} else if (btn.hasClass('user-reply')) { } else if (btn.hasClass('user-reply')) {
me.fireEvent('comment:show', [commentId, false]);
me.fireEvent('comment:closeEditing'); me.fireEvent('comment:closeEditing');
record.set('showReply', true); record.set('showReply', true);
@ -260,7 +261,6 @@ define([
picker.autoScrollToEditButtons(); picker.autoScrollToEditButtons();
picker.setFocusToTextBox(); picker.setFocusToTextBox();
me.fireEvent('comment:show', [commentId, false]);
} else if (btn.hasClass('btn-reply', false)) { } else if (btn.hasClass('btn-reply', false)) {
if (showReplyBox) { if (showReplyBox) {
me.fireEvent('comment:addReply', [commentId, picker.getActiveTextBoxVal()]); me.fireEvent('comment:addReply', [commentId, picker.getActiveTextBoxVal()]);