mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 10:17:15 +02:00
fix: #14045, automatically open category selector dropdown on move topic modal
This commit is contained in:
@@ -89,8 +89,6 @@ define('forum/category/tools', [
|
||||
}
|
||||
move.init(tids, null, onCommandComplete);
|
||||
});
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
components.get('topic/move-all').on('click', function () {
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user