mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
closes #1774
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user