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) {
|
if (editedPostTitle.length) {
|
||||||
editedPostTitle.fadeOut(250, function() {
|
editedPostTitle.fadeOut(250, function() {
|
||||||
editedPostTitle.html(data.title);
|
editedPostTitle.html(data.title).fadeIn(250);
|
||||||
editedPostTitle.fadeIn(250);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -102,6 +101,18 @@ define('forum/topic/events', ['forum/topic/browsing', 'forum/topic/postTools', '
|
|||||||
app.replaceSelfLinks(editedPostEl.find('a'));
|
app.replaceSelfLinks(editedPostEl.find('a'));
|
||||||
editedPostEl.fadeIn(250);
|
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) {
|
function onPostPurged(pid) {
|
||||||
|
|||||||
@@ -76,7 +76,8 @@ var winston = require('winston'),
|
|||||||
next(null, {
|
next(null, {
|
||||||
tid: tid,
|
tid: tid,
|
||||||
title: validator.escape(title),
|
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,
|
pid: data.pid,
|
||||||
title: results.topic.title,
|
title: results.topic.title,
|
||||||
isMainPost: results.topic.isMainPost,
|
isMainPost: results.topic.isMainPost,
|
||||||
|
tags: results.topic.tags,
|
||||||
content: results.content
|
content: results.content
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user