Files
terra-view/templates/partials
serversdown 3f0ec8f30b fix(locations): Remove/Restore buttons broken by quote collision in onclick
The buttons used inline `onclick="...({{ name | tojson }})"`, which
emits the location name as a JSON-quoted string with double quotes —
those double quotes collide with the onclick attribute's own double
quotes, terminating the attribute early.  Result: the browser parses
the attribute as broken HTML and the click handler never fires.

Switched both Remove and Restore to the data-attribute pattern the
Edit button already uses (data-loc-id / data-loc-name read via
this.dataset in the onclick).  Robust against any character in the
location name.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-14 22:42:39 +00:00
..
2026-01-21 23:11:58 +00:00
2025-12-15 18:27:00 +00:00
2025-12-02 06:36:13 +00:00
2025-12-02 06:36:13 +00:00
2026-01-29 07:50:13 +00:00
2026-01-02 20:27:09 +00:00
2025-12-03 00:51:18 +00:00