Node.js based forum software built for the modern web
fix: #14045, automatically open category selector dropdown on move topic modal
Julian Lam2327cae7647f
diff --git a/public/src/client/category/tools.js b/public/src/client/category/tools.jsindex bd15ff459b..17be8c65c2 100644--- a/public/src/client/category/tools.js+++ b/public/src/client/category/tools.js@@ -89,8 +89,6 @@ define('forum/category/tools', [}move.init(tids, null, onCommandComplete);});-- return false;});components.get('topic/move-all').on('click', function () {diff --git a/public/src/client/topic/move.js b/public/src/client/topic/move.jsindex 08ce3e9d5c..22c693bb29 100644--- a/public/src/client/topic/move.js+++ b/public/src/client/topic/move.js@@ -2,8 +2,8 @@define('forum/topic/move', [- 'categorySelector', 'alerts', 'hooks', 'api',-], function (categorySelector, alerts, hooks, api) {+ 'categorySelector', 'alerts', 'hooks', 'api', 'bootstrap',+], function (categorySelector, alerts, hooks, api, bootstrap) {const Move = {};let modal;let selectedCategory;@@ -37,6 +37,9 @@ define('forum/topic/move', [localOnly: true,});+ const dropdown = new bootstrap.Dropdown(dropdownEl.find('button'));+ dropdown.show();+modal.find('#move_thread_commit').on('click', onCommitClicked);modal.find('#move_topic_cancel').on('click', closeMoveModal);});