Skip to content

Commit

Permalink
closes #4813
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Jul 6, 2016
1 parent 1a43b34 commit f084ff9
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions public/src/client/topic/events.js
Expand Up @@ -126,19 +126,19 @@ define('forum/topic/events', [
posts.unloadImages(editedPostEl.parent());
posts.loadImages();
editedPostEl.fadeIn(250);
$(window).trigger('action:posts.edited', data);
});

var editData = {
editor: data.editor,
editedISO: utils.toISOString(data.post.edited)
};

templates.parse('partials/topic/post-editor', editData, function(html) {
translator.translate(html, function(translated) {
html = $(translated);
editorEl.replaceWith(html);
html.find('.timeago').timeago();
var editData = {
editor: data.editor,
editedISO: utils.toISOString(data.post.edited)
};

templates.parse('partials/topic/post-editor', editData, function(html) {
translator.translate(html, function(translated) {
html = $(translated);
editorEl.replaceWith(html);
html.find('.timeago').timeago();
$(window).trigger('action:posts.edited', data);
});
});
});

Expand Down

0 comments on commit f084ff9

Please sign in to comment.