Make log file links work again (thank Emil) (closes #378)

This commit is contained in:
Alexander Bock
2017-10-20 11:47:48 -04:00
parent ca968f805c
commit fc4ff258b0
2 changed files with 3 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ function remove(node) {
node.parentNode.removeChild(node);
}
function scrollTo(selector) {
function scrollToPosition(selector) {
var element = document.querySelector(selector);
if (element && element.scrollIntoView) {
element.scrollIntoView();
@@ -34,7 +34,7 @@ function pluralize(nItems, singular, plural) {
}
function scrollLink(content, selector) {
var html = '<a onclick="scrollTo(\'' + selector + '\')">' + content + "</a>";
var html = '<a onclick="scrollToPosition(\'' + selector + '\')">' + content + "</a>";
return html;
}

View File

@@ -87,6 +87,7 @@ thead th:first-child {
.summary {
padding: 5px;
cursor: pointer;
}
.summary-warning {
background-color: #fef8c3;