mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 16:35:47 +01:00
Redirect to category after purging topic
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user