mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 02:36:16 +01:00
closes #1398
This commit is contained in:
@@ -68,13 +68,19 @@ define(['forum/topic/move', 'topicSelect'], function(move, topicSelect) {
|
||||
|
||||
$('.move_thread').on('click', function() {
|
||||
var tids = topicSelect.getSelectedTids();
|
||||
console.log(tids);
|
||||
|
||||
if (tids.length) {
|
||||
move.init(tids, cid, onCommandComplete);
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
$('.move_all_threads').on('click', function() {
|
||||
move.init(null, cid, function(err) {
|
||||
ajaxify.refresh();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
socket.on('event:topic_deleted', setDeleteState);
|
||||
socket.on('event:topic_restored', setDeleteState);
|
||||
@@ -151,7 +157,7 @@ define(['forum/topic/move', 'topicSelect'], function(move, topicSelect) {
|
||||
var topic = getTopicEl(data.tid);
|
||||
topic.toggleClass('pinned', data.isPinned);
|
||||
topic.find('.fa-thumb-tack').toggleClass('hide', !data.isPinned);
|
||||
ajaxify.go('category/' + CategoryTools.cid);
|
||||
ajaxify.refresh();
|
||||
}
|
||||
|
||||
function setLockedState(data) {
|
||||
|
||||
Reference in New Issue
Block a user