aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/static/talktree.js
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-13 16:10:40 -0400
committerhistoria <[not public]>2026-07-13 16:10:40 -0400
commit3274b700a6f655b8ecc3505e814ac5d782ae6ffe (patch)
treee669b47726f8cb93b75c7df85997cc8556009f20 /internal/admin/static/talktree.js
parent93a412aed2b11406399504c81d6d19ed1341908a (diff)
downloadthehouseoficarus-3274b700a6f655b8ecc3505e814ac5d782ae6ffe.tar.gz
feat(admin): reminder text for color tags and item variables, improve placeholder text
Diffstat (limited to 'internal/admin/static/talktree.js')
-rw-r--r--internal/admin/static/talktree.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/admin/static/talktree.js b/internal/admin/static/talktree.js
index 8e35404..ff44ff1 100644
--- a/internal/admin/static/talktree.js
+++ b/internal/admin/static/talktree.js
@@ -204,7 +204,7 @@
if (tag === 'INPUT' || tag === 'TEXTAREA') {
var val;
if (type === 'checkbox') { val = el.checked; }
- else if (type === 'number') { var n = parseFloat(el.value); val = isNaN(n) ? 0 : n; }
+ else if (type === 'number') { var n = parseFloat(el.value); val = isNaN(n) ? '' : n; }
else { val = el.value; }
talkSyncPath(path, val);
if (path.endsWith('.goto') && e.type === 'change') renderTalkTree(window._talkData);