diff options
| author | historia <[not public]> | 2026-07-13 16:10:40 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-13 16:10:40 -0400 |
| commit | 3274b700a6f655b8ecc3505e814ac5d782ae6ffe (patch) | |
| tree | e669b47726f8cb93b75c7df85997cc8556009f20 /internal/admin/static/talktree.js | |
| parent | 93a412aed2b11406399504c81d6d19ed1341908a (diff) | |
| download | thehouseoficarus-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.js | 2 |
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); |
