Skip to content

Commit

Permalink
Merge pull request #1211 from NatLibFi/issue1210-fix-hierarchy-click-…
Browse files Browse the repository at this point in the history
…on-notation

Allow clicking on either label or notation in hierarchy
  • Loading branch information
osma authored Sep 16, 2021
2 parents 9db5409 + 6242fa2 commit c960e09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resource/js/docready.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c960e09

Please sign in to comment.