|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
/* globals app, ajaxify, define, socket, templates */
|
|
|
|
|
/* globals config, app, ajaxify, define, socket, templates */
|
|
|
|
|
|
|
|
|
|
define('forum/topic/events', [
|
|
|
|
|
'forum/topic/browsing',
|
|
|
|
@ -101,6 +101,9 @@ define('forum/topic/events', [
|
|
|
|
|
topicTitle = components.get('topic/title');
|
|
|
|
|
|
|
|
|
|
if (topicTitle.length && data.title) {
|
|
|
|
|
var newUrl = 'topic/' + data.slug + (window.location.search ? window.location.search : '');
|
|
|
|
|
history.replaceState({url: newUrl}, null, window.location.protocol + '//' + window.location.host + config.relative_path + '/' + newUrl);
|
|
|
|
|
|
|
|
|
|
topicTitle.fadeOut(250, function() {
|
|
|
|
|
topicTitle.html(data.title).fadeIn(250);
|
|
|
|
|
});
|
|
|
|
|