mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 20:27:13 +02:00
if there is no search el return
aka if theme doesnt support it
This commit is contained in:
@@ -8,6 +8,9 @@ define('categorySearch', function () {
|
||||
return;
|
||||
}
|
||||
var searchEl = el.find('[component="category-selector-search"]');
|
||||
if (!searchEl.length) {
|
||||
return;
|
||||
}
|
||||
var categoryEls = el.find('[component="category/list"] [data-cid]');
|
||||
el.on('show.bs.dropdown', function () {
|
||||
function updateList() {
|
||||
|
||||
Reference in New Issue
Block a user