Links and buttons work again
Browse files at this commit28236ca1c0373b2270411bc4ffa6bff3c18d9c98Parent: b9b5fe5- fix
- links and buttons work again
- the colour row's clearNote no longer replaces the restart bar's
1 changed file +3 -3
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 | 978 | var note = row.querySelector('[data-hex-note]'); |
| 979 | 979 | if (note) { note.textContent = ''; } |
| 980 | 980 | } |
| @@ -982,7 +982,7 @@ | ||
| 982 | 982 | // A preset pick moves its row's knob to the preset's hue, without choosing Custom. |
| 983 | 983 | function setKnob(row, hue) { |
| 984 | 984 | setRow(row, hue, rowVivid(row), true); |
| 985 | - clearNote(row); | |
| 985 | + clearHexNote(row); | |
| 986 | 986 | } |
| 987 | 987 | |
| 988 | 988 | // A hue or vividness slider: the row's Custom choice takes the new colour, and the colour shows on |
| @@ -992,7 +992,7 @@ | ||
| 992 | 992 | var custom = row ? row.querySelector('input[data-hue-custom]') : null; |
| 993 | 993 | if (!row || !custom) { return; } |
| 994 | 994 | setRow(row, rowHue(row), rowVivid(row), true); |
| 995 | - clearNote(row); | |
| 995 | + clearHexNote(row); | |
| 996 | 996 | custom.checked = true; |
| 997 | 997 | wantColour(PREVIEW_ATTR[custom.name], custom.value); |
| 998 | 998 | } |