Node.js based forum software built for the modern web
closes #2352
barisusakli14ba1ff8c020
diff --git a/public/src/client/categoryTools.js b/public/src/client/categoryTools.jsindex c86df676f3..b94954626a 100644--- a/public/src/client/categoryTools.js+++ b/public/src/client/categoryTools.js@@ -11,7 +11,7 @@ define('forum/categoryTools', ['forum/topic/move', 'topicSelect'], function(moveCategoryTools.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(movereturn app.alertError(err.message);}closeDropDown();+ updateDropdownOptions();}- function onTopicSelect() {+ function updateDropdownOptions() {var tids = topicSelect.getSelectedTids();var isAnyDeleted = isAny(isTopicDeleted, tids);var areAllDeleted = areAll(isTopicDeleted, tids);