mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: if category in selector has url use it
This commit is contained in:
@@ -199,7 +199,11 @@ define('topicList', [
|
||||
});
|
||||
}
|
||||
var categoryEl = $(this);
|
||||
var cid = $(this).attr('data-cid');
|
||||
var link = categoryEl.find('a').attr('href');
|
||||
if (link && link !== '#' && link.length) {
|
||||
return;
|
||||
}
|
||||
var cid = categoryEl.attr('data-cid');
|
||||
if (ev.ctrlKey) {
|
||||
selectChildren(cid, !categoryEl.find('[component="category/select/icon"]').hasClass('fa-check'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user