This commit is contained in:
barisusakli
2014-04-21 13:29:40 -04:00
parent 4144abf6e3
commit 3c11030929
4 changed files with 49 additions and 7 deletions

View File

@@ -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) {