This commit is contained in:
barisusakli
2014-11-17 14:22:25 -05:00
parent ae1528dc7e
commit 14ba1ff8c0

View File

@@ -11,7 +11,7 @@ define('forum/categoryTools', ['forum/topic/move', 'topicSelect'], function(move
CategoryTools.init = function(cid) {
CategoryTools.cid = cid;
topicSelect.init(onTopicSelect);
topicSelect.init(updateDropdownOptions);
$('.delete_thread').on('click', function(e) {
var tids = topicSelect.getSelectedTids();
@@ -126,9 +126,10 @@ define('forum/categoryTools', ['forum/topic/move', 'topicSelect'], function(move
return app.alertError(err.message);
}
closeDropDown();
updateDropdownOptions();
}
function onTopicSelect() {
function updateDropdownOptions() {
var tids = topicSelect.getSelectedTids();
var isAnyDeleted = isAny(isTopicDeleted, tids);
var areAllDeleted = areAll(isTopicDeleted, tids);