mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 10:06:52 +02:00
fix: only show category selector on quickreply on /world
This commit is contained in:
@@ -108,10 +108,10 @@
|
|||||||
"nodebb-plugin-spam-be-gone": "2.3.2",
|
"nodebb-plugin-spam-be-gone": "2.3.2",
|
||||||
"nodebb-plugin-web-push": "0.7.7",
|
"nodebb-plugin-web-push": "0.7.7",
|
||||||
"nodebb-rewards-essentials": "1.0.2",
|
"nodebb-rewards-essentials": "1.0.2",
|
||||||
"nodebb-theme-harmony": "2.2.59",
|
"nodebb-theme-harmony": "2.2.60",
|
||||||
"nodebb-theme-lavender": "7.1.21",
|
"nodebb-theme-lavender": "7.1.21",
|
||||||
"nodebb-theme-peace": "2.2.57",
|
"nodebb-theme-peace": "2.2.57",
|
||||||
"nodebb-theme-persona": "14.2.32",
|
"nodebb-theme-persona": "14.2.33",
|
||||||
"nodebb-widget-essentials": "7.0.43",
|
"nodebb-widget-essentials": "7.0.43",
|
||||||
"nodemailer": "8.0.2",
|
"nodemailer": "8.0.2",
|
||||||
"nprogress": "0.2.0",
|
"nprogress": "0.2.0",
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ define('quickreply', [
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($('[component="topic/quickreply/container"] [component="category-selector"]')) {
|
if (opts?.body?.cid && $('[component="topic/quickreply/container"] [component="category-selector"]')) {
|
||||||
categorySelector.init($('[component="category-selector"]'), {
|
categorySelector.init($('[component="category-selector"]'), {
|
||||||
privilege: 'topics:create',
|
privilege: 'topics:create',
|
||||||
selectedCategory: ajaxify.data.selectedCategory,
|
selectedCategory: ajaxify.data.selectedCategory,
|
||||||
@@ -28,6 +28,7 @@ define('quickreply', [
|
|||||||
opts.body.cid = category.cid;
|
opts.body.cid = category.cid;
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
$('[component="topic/quickreply/container"] [component="topic/quickreply/category-selector"').removeClass('hidden');
|
||||||
}
|
}
|
||||||
|
|
||||||
const qrDraftId = ajaxify.data.tid ? `qr:draft:tid:${ajaxify.data.tid}` : `qr:draft:cid:${opts?.body?.cid || -1}`;
|
const qrDraftId = ajaxify.data.tid ? `qr:draft:tid:${ajaxify.data.tid}` : `qr:draft:cid:${opts?.body?.cid || -1}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user