forge
Explore
Log in

Don't you dare go Hollow

Links and buttons work again

Browse files at this commit

28236ca1c0373b2270411bc4ffa6bff3c18d9c98Ahmet Kaan GümüşParent: b9b5fe5
All checks have passed
Show checks
  • fix
    • links and buttons work again
    • the colour row's clearNote no longer replaces the restart bar's
Show full message
🐛 fix: links and buttons work again; the colour row's clearNote no longer replaces the restart bar's
crates/forge-web/assets/nav.jsmodified+3 -3
@@ -974,7 +974,7 @@
974 }974 }
975 }975 }
976 976
977- function clearNote(row) {977+ function clearHexNote(row) {
978 var note = row.querySelector('[data-hex-note]');978 var note = row.querySelector('[data-hex-note]');
979 if (note) { note.textContent = ''; }979 if (note) { note.textContent = ''; }
980 }980 }
@@ -982,7 +982,7 @@
982 // A preset pick moves its row's knob to the preset's hue, without choosing Custom.982 // A preset pick moves its row's knob to the preset's hue, without choosing Custom.
983 function setKnob(row, hue) {983 function setKnob(row, hue) {
984 setRow(row, hue, rowVivid(row), true);984 setRow(row, hue, rowVivid(row), true);
985- clearNote(row);985+ clearHexNote(row);
986 }986 }
987 987
988 // A hue or vividness slider: the row's Custom choice takes the new colour, and the colour shows on988 // A hue or vividness slider: the row's Custom choice takes the new colour, and the colour shows on
@@ -992,7 +992,7 @@
992 var custom = row ? row.querySelector('input[data-hue-custom]') : null;992 var custom = row ? row.querySelector('input[data-hue-custom]') : null;
993 if (!row || !custom) { return; }993 if (!row || !custom) { return; }
994 setRow(row, rowHue(row), rowVivid(row), true);994 setRow(row, rowHue(row), rowVivid(row), true);
995- clearNote(row);995+ clearHexNote(row);
996 custom.checked = true;996 custom.checked = true;
997 wantColour(PREVIEW_ATTR[custom.name], custom.value);997 wantColour(PREVIEW_ATTR[custom.name], custom.value);
998 }998 }