Skip to content

Node.js based forum software built for the modern web

fix: if category in selector has url use it

Barış Soner Uşaklı1f992cf3717b
diff --git a/public/src/modules/topicList.js b/public/src/modules/topicList.js
index bd486d5adb..553eb3a18b 100644
--- a/public/src/modules/topicList.js
+++ b/public/src/modules/topicList.js
@@ -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'));
}