From 3baf821fbdee386b78a5b2d8d567293413c1d3d3 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 24 May 2026 16:17:23 +0000 Subject: [PATCH] Save project code selection to localStorage Added data-ls attributes to pcode select and pcode-other input so they are persisted and restored with the rest of the form. Restoring an "Other" selection also re-shows the free-text input field. --- app/index.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/index.html b/app/index.html index 0593276..2ff8e71 100644 --- a/app/index.html +++ b/app/index.html @@ -556,14 +556,14 @@ function buildForm() {
- ${pcOpts}
@@ -1014,6 +1014,12 @@ function restoreStorage() { if (el) el.value = v; }); + // Restore "Other" project-code visibility + if (d.pcode === "__other__") { + const w = document.getElementById("pcode-other-wrap"); + if (w) w.style.display = "block"; + } + if (wasGen && d.ino) { const bumped = bumpNum(d.ino); const el = document.getElementById("ino");