Node.js based forum software built for the modern web
Redirect to category after purging topic
Charles0cba15251612
diff --git a/public/src/forum/topic/events.js b/public/src/forum/topic/events.jsindex 9ca97fde02..e0617e8932 100644--- a/public/src/forum/topic/events.js+++ b/public/src/forum/topic/events.js@@ -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;-});\ No newline at end of file+});diff --git a/src/threadTools.js b/src/threadTools.jsindex d322893f5b..385407e481 100644--- a/src/threadTools.js+++ b/src/threadTools.js@@ -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();});