From 6242fa2b03c48d460ed364c8ee63d8800cb5a5f4 Mon Sep 17 00:00:00 2001 From: Osma Suominen Date: Thu, 16 Sep 2021 20:28:31 +0300 Subject: [PATCH] Allow clicking on either label or notation in hierarchy. Fixes #1210 --- resource/js/docready.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resource/js/docready.js b/resource/js/docready.js index 3362aaa49..10c736bd2 100644 --- a/resource/js/docready.js +++ b/resource/js/docready.js @@ -280,7 +280,7 @@ $(function() { // DOCUMENT READY $(document).on('click', '.concept-hierarchy a', function(event) { $.ajaxQ.abortContentQueries(); - var targetUrl = event.target.href; + var targetUrl = event.target.href || event.target.parentElement.href; $('#hier-trigger').attr('href', targetUrl); var $content = $('.content').empty().append($delayedSpinner.hide()); var loading = delaySpinner();