v1.18.x
barisusakli 11 years ago
parent 6057da57a2
commit 9a4e6aa01c

@ -91,8 +91,7 @@ define('forum/topic/events', ['forum/topic/browsing', 'forum/topic/postTools', '
if (editedPostTitle.length) {
editedPostTitle.fadeOut(250, function() {
editedPostTitle.html(data.title);
editedPostTitle.fadeIn(250);
editedPostTitle.html(data.title).fadeIn(250);
});
}
@ -102,6 +101,18 @@ define('forum/topic/events', ['forum/topic/browsing', 'forum/topic/postTools', '
app.replaceSelfLinks(editedPostEl.find('a'));
editedPostEl.fadeIn(250);
});
if (data.tags && data.tags.length !== $('.tags').first().children().length) {
ajaxify.loadTemplate('partials/post_bar', function(postBarTemplate) {
var html = templates.parse(templates.getBlock(postBarTemplate, 'tags'), {
tags: data.tags
});
var tags = $('.tags');
tags.fadeOut(250, function() {
tags.html(html).fadeIn(250);
});
});
}
}
function onPostPurged(pid) {

@ -76,7 +76,8 @@ var winston = require('winston'),
next(null, {
tid: tid,
title: validator.escape(title),
isMainPost: isMainPost
isMainPost: isMainPost,
tags: options.tags.map(function(tag) { return {name:tag}; })
});
});

@ -174,6 +174,7 @@ SocketPosts.edit = function(socket, data, callback) {
pid: data.pid,
title: results.topic.title,
isMainPost: results.topic.isMainPost,
tags: results.topic.tags,
content: results.content
});

Loading…
Cancel
Save