Make the new dropdown_hover.png look consistent on i2ptunnel, re-run javascript prettifier

This commit is contained in:
hankhill19580
2020-04-17 06:02:12 +00:00
parent 0656abd101
commit 0bd3df6d98
2 changed files with 8 additions and 2 deletions

View File

@ -3,7 +3,11 @@ var hideableTables = document.querySelectorAll("table.tunnelConfig th");
hideableTables.forEach(function(configTable) { hideableTables.forEach(function(configTable) {
configTable.onclick = function() { configTable.onclick = function() {
function lookupTableRow() { function lookupTableRow() {
for (var i = 0, row; (row = configTable.offsetParent.rows[i]); i++) { for (
var i = 0, row;
(row = configTable.offsetParent.rows[i]);
i++
) {
if (configTable.parentNode == row) { if (configTable.parentNode == row) {
return i; return i;
} }
@ -29,7 +33,9 @@ hideableTables.forEach(function(configTable) {
) { ) {
row.style.visibility = "collapse"; row.style.visibility = "collapse";
collapseme = true; collapseme = true;
configTable.classList.remove("tunnelConfigExpanded"); configTable.classList.remove(
"tunnelConfigExpanded"
);
} }
} }
} else { } else {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 167 B

After

Width:  |  Height:  |  Size: 336 B