@ -74,8 +74,8 @@ define('forum/topic/events', ['forum/topic/browsing', 'forum/topic/postTools', '
threadTools.setDeleteState(data);
}
function onTopicPurged(tid) {
ajaxify.refresh();
function onTopicPurged(tid, cid) {
ajaxify.go('category/' + cid);
function toggleTopicLockedState(data) {
@ -174,4 +174,4 @@ define('forum/topic/events', ['forum/topic/browsing', 'forum/topic/postTools', '
return Events;
});
@ -101,7 +101,7 @@ var winston = require('winston'),
websockets.emitTopicPostStats();
websockets.in('topic_' + tid).emit('event:topic_purged', tid);
websockets.in('topic_' + tid).emit('event:topic_purged', tid, results.topic.cid);
websockets.in('category_' + results.topic.cid).emit('event:topic_purged', tid);
callback();