replaceSelfLinks on new posts and reload

v1.18.x
barisusakli 11 years ago
parent e6d8e9c959
commit 836540ff78

@ -108,7 +108,7 @@ var socket,
templates.setGlobal('loggedIn', parseInt(data.uid, 10) !== 0); templates.setGlobal('loggedIn', parseInt(data.uid, 10) !== 0);
app.showLoginMessage(); app.showLoginMessage();
app.replaceSelfLinks();
$(window).trigger('action:connected'); $(window).trigger('action:connected');
}); });

@ -380,6 +380,7 @@ define('forum/topic', ['forum/pagination', 'forum/infinitescroll', 'forum/topic/
app.populateOnlineUsers(); app.populateOnlineUsers();
app.createUserTooltips(); app.createUserTooltips();
app.replaceSelfLinks(html.find('a'));
utils.addCommasToNumbers(html.find('.formatted-number')); utils.addCommasToNumbers(html.find('.formatted-number'));
utils.makeNumbersHumanReadable(html.find('.human-readable-number')); utils.makeNumbersHumanReadable(html.find('.human-readable-number'));
html.find('span.timeago').timeago(); html.find('span.timeago').timeago();

Loading…
Cancel
Save