v1.18.x
barisusakli 10 years ago
parent 1a43b3482c
commit f084ff9a54

@ -126,19 +126,19 @@ define('forum/topic/events', [
posts.unloadImages(editedPostEl.parent()); posts.unloadImages(editedPostEl.parent());
posts.loadImages(); posts.loadImages();
editedPostEl.fadeIn(250); editedPostEl.fadeIn(250);
$(window).trigger('action:posts.edited', data);
});
var editData = { var editData = {
editor: data.editor, editor: data.editor,
editedISO: utils.toISOString(data.post.edited) editedISO: utils.toISOString(data.post.edited)
}; };
templates.parse('partials/topic/post-editor', editData, function(html) { templates.parse('partials/topic/post-editor', editData, function(html) {
translator.translate(html, function(translated) { translator.translate(html, function(translated) {
html = $(translated); html = $(translated);
editorEl.replaceWith(html); editorEl.replaceWith(html);
html.find('.timeago').timeago(); html.find('.timeago').timeago();
$(window).trigger('action:posts.edited', data);
});
}); });
}); });

Loading…
Cancel
Save