Fix not working lint anchor

This commit is contained in:
Guillaume Gomez 2024-10-22 22:50:17 +02:00
parent 5873cb9d17
commit 97d13a8c0a
2 changed files with 1 additions and 8 deletions

View file

@ -150,7 +150,7 @@ Otherwise, have a great day =^.^=
<h2 class="panel-title"> {# #}
<div class="panel-title-name" id="lint-{{lint.id}}"> {# #}
<span>{{lint.id}}</span> {#+ #}
<a href="#{{lint.id}}" class="anchor label label-default" onclick="openLint(event)">&para;</a> {#+ #}
<a href="#{{lint.id}}" class="anchor label label-default">&para;</a> {#+ #}
<a href="" class="anchor label label-default" onclick="copyToClipboard(event)"> {# #}
&#128203; {# #}
</a> {# #}

View file

@ -151,13 +151,6 @@ function expandLint(lintId) {
highlightIfNeeded(lintId);
}
// Show details for one lint
function openLint(event) {
event.preventDefault();
event.stopPropagation();
expandLint(event.target.getAttribute("href").slice(1));
}
function copyToClipboard(event) {
event.preventDefault();
event.stopPropagation();