v1.18.x
barisusakli
parent 3a6d5948ba
commit 902f529d53

@ -99,7 +99,8 @@ define('forum/topic/events', [
} }
var editedPostEl = components.get('post/content', data.post.pid), var editedPostEl = components.get('post/content', data.post.pid),
editorEl = $('[data-pid="' + data.post.pid + '"] [component="post/editor"]'), editorEl = $('[data-pid="' + data.post.pid + '"] [component="post/editor"]'),
topicTitle = components.get('topic/title'); topicTitle = components.get('topic/title'),
breadCrumb = components.get('breadcrumb/current');
if (topicTitle.length && data.topic.title) { if (topicTitle.length && data.topic.title) {
var newUrl = 'topic/' + data.topic.slug + (window.location.search ? window.location.search : ''); var newUrl = 'topic/' + data.topic.slug + (window.location.search ? window.location.search : '');
@ -108,6 +109,9 @@ define('forum/topic/events', [
topicTitle.fadeOut(250, function() { topicTitle.fadeOut(250, function() {
topicTitle.html(data.topic.title).fadeIn(250); topicTitle.html(data.topic.title).fadeIn(250);
}); });
breadCrumb.fadeOut(250, function() {
breadCrumb.html(data.topic.title).fadeIn(250);
});
} }
editedPostEl.fadeOut(250, function() { editedPostEl.fadeOut(250, function() {

@ -134,8 +134,7 @@ topicsController.get = function(req, res, callback) {
url: nconf.get('relative_path') + '/category/' + topicData.category.slug url: nconf.get('relative_path') + '/category/' + topicData.category.slug
}, },
{ {
text: topicData.title, text: topicData.title
url: nconf.get('relative_path') + '/topic/' + topicData.slug
} }
]; ];

Loading…
Cancel
Save