|
|
@ -142,19 +142,21 @@ define('forum/topic/events', [
|
|
|
|
posts.addBlockquoteEllipses(editedPostEl.parent());
|
|
|
|
posts.addBlockquoteEllipses(editedPostEl.parent());
|
|
|
|
editedPostEl.fadeIn(250);
|
|
|
|
editedPostEl.fadeIn(250);
|
|
|
|
|
|
|
|
|
|
|
|
const editData = {
|
|
|
|
if (data.post.edited) {
|
|
|
|
editor: data.editor,
|
|
|
|
const editData = {
|
|
|
|
editedISO: utils.toISOString(data.post.edited),
|
|
|
|
editor: data.editor,
|
|
|
|
};
|
|
|
|
editedISO: utils.toISOString(data.post.edited),
|
|
|
|
|
|
|
|
};
|
|
|
|
app.parseAndTranslate('partials/topic/post-editor', editData, function (html) {
|
|
|
|
|
|
|
|
editorEl.replaceWith(html);
|
|
|
|
app.parseAndTranslate('partials/topic/post-editor', editData, function (html) {
|
|
|
|
postContainer.find('[component="post/edit-indicator"]')
|
|
|
|
editorEl.replaceWith(html);
|
|
|
|
.removeClass('hidden')
|
|
|
|
postContainer.find('[component="post/edit-indicator"]')
|
|
|
|
.translateAttr('title', `[[global:edited-timestamp, ${editData.editedISO}]]`);
|
|
|
|
.removeClass('hidden')
|
|
|
|
postContainer.find('[component="post/editor"] .timeago').timeago();
|
|
|
|
.translateAttr('title', `[[global:edited-timestamp, ${editData.editedISO}]]`);
|
|
|
|
hooks.fire('action:posts.edited', data);
|
|
|
|
postContainer.find('[component="post/editor"] .timeago').timeago();
|
|
|
|
});
|
|
|
|
hooks.fire('action:posts.edited', data);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
hooks.fire('action:posts.edited', data);
|
|
|
|
hooks.fire('action:posts.edited', data);
|
|
|
|