fix: if category in selector has url use it

This commit is contained in:
Barış Soner Uşaklı
2020-05-12 15:00:39 -04:00
parent c47a1c4df4
commit 1f992cf371

View File

@@ -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'));
}