Editing dialog says where the code lives instead of naming a person

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
2026-10-14 16:15:17 -04:00
co-authored by Claude Fable 5.1
parent 1f87b2f01b
commit 9278e08acc
+1 -1
View File
@@ -42,7 +42,7 @@
showEditing(); showEditing();
editbtn.onclick = () => { editbtn.onclick = () => {
if (state.editing) { state.editing = null; state.name = null; store.set("sp-code", null); store.set("sp-name", null); showEditing(); route(); return; } if (state.editing) { state.editing = null; state.name = null; store.set("sp-code", null); store.set("sp-name", null); showEditing(); route(); return; }
dialog(`<h3>Switch Editing on</h3><p class="help">The editing code is in the campus's settings file in the repo; ask Chris.</p> dialog(`<h3>Switch Editing on</h3><p class="help">The editing code is the "editing code" line in the campus's settings file in the repo (config.json); whoever has the repo has it.</p>
<input id="dcode" placeholder="editing code" autocomplete="off"><input id="dname" placeholder="your first name" autocomplete="off"> <input id="dcode" placeholder="editing code" autocomplete="off"><input id="dname" placeholder="your first name" autocomplete="off">
<div class="row"><button class="primary" id="dok">Switch on</button><button id="dcancel">Cancel</button></div><p id="dmsg" class="help"></p>`, (box) => { <div class="row"><button class="primary" id="dok">Switch on</button><button id="dcancel">Cancel</button></div><p id="dmsg" class="help"></p>`, (box) => {
box.querySelector("#dcancel").onclick = closeDialog; box.querySelector("#dcancel").onclick = closeDialog;