From 1f992cf3717be17e12450aafa03bdb4f7e050ba2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 12 May 2020 15:00:39 -0400 Subject: [PATCH] fix: if category in selector has url use it --- public/src/modules/topicList.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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')); }