mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-22 12:43:18 +00:00
Fix not working lint anchor
This commit is contained in:
parent
5873cb9d17
commit
97d13a8c0a
2 changed files with 1 additions and 8 deletions
|
@ -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)">¶</a> {#+ #}
|
||||
<a href="#{{lint.id}}" class="anchor label label-default">¶</a> {#+ #}
|
||||
<a href="" class="anchor label label-default" onclick="copyToClipboard(event)"> {# #}
|
||||
📋 {# #}
|
||||
</a> {# #}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue