From 79ae833fa94cdf02071d67465a521e077c3cd8c3 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 30 May 2026 16:42:46 +0000 Subject: [PATCH] Replace literal em-dashes with — HTML entities MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes garbled display ("â€"") on Windows where the UTF-8 bytes for U+2014 were being misread as Windows-1252. All em-dash occurrences in index.html, app.js, and common.js are now expressed as HTML entities. https://claude.ai/code/session_01JuRTR5Xjx8emQsyerBgGU7 --- static/app.js | 2 +- static/common.js | 4 ++-- static/index.html | 16 ++++++++-------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/static/app.js b/static/app.js index 3f62ef4..4791b48 100644 --- a/static/app.js +++ b/static/app.js @@ -67,7 +67,7 @@ function populateTransferTypes() { const sel = document.getElementById(id); if (!sel) return; const prev = sel.value; - sel.innerHTML = '' + + sel.innerHTML = '' + types.map(t => ``).join(''); if (prev && types.includes(prev)) sel.value = prev; }); diff --git a/static/common.js b/static/common.js index e0358d4..bdedb58 100644 --- a/static/common.js +++ b/static/common.js @@ -54,7 +54,7 @@ async function loadStaffInto(selectId) { try { const data = await apiFetch('/staff'); const saved = sessionStorage.getItem('lastStaff') || ''; - sel.innerHTML = '' + + sel.innerHTML = '' + data.staff.map(n => ``).join(''); sel.addEventListener('change', () => { if (sel.value) sessionStorage.setItem('lastStaff', sel.value); @@ -67,7 +67,7 @@ async function refreshAllStaffDropdowns() { const data = await apiFetch('/staff'); const saved = sessionStorage.getItem('lastStaff') || ''; document.querySelectorAll('select[id$="Staff"]').forEach(sel => { - sel.innerHTML = '' + + sel.innerHTML = '' + data.staff.map(n => ``).join(''); }); renderStaffChips(data.staff); diff --git a/static/index.html b/static/index.html index 0999ecb..5247332 100644 --- a/static/index.html +++ b/static/index.html @@ -100,7 +100,7 @@
@@ -128,7 +128,7 @@
@@ -209,9 +209,9 @@
@@ -268,11 +268,11 @@

Receipt Footers

-
+
-
+
-
+