vanilla_respondage/options
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Tammo ter Hark 44e0e871d4 fix(options): guard JSON.parse of optionCssFiles so the options page works at global level
On the GLOBAL theme options page the hidden #optionCssFiles holds the
literal string "inherit" (not JSON). options.js did an unguarded
JSON.parse($('#optionCssFiles').val()) in the ThemeOptions constructor,
which threw and meant run() never executed: no change handlers and no
save handler were bound, so Save posted the stale options JSON and
nothing changed in the UI (e.g. colors on the Default fonts and colors
tab) was saved. Fall back to an empty file list on parse failure.
OPTIONS_JS_TOKEN bumped to 20261125.4.

Verified against the live page (themeOptions/update&id=497, where
optionCssFiles="inherit"): constructor no longer throws, picker
input/change handlers bind, and the save click writes the new color
into TemplateConfiguration[options]; real HTTP POST confirmed the
value lands in lime_template_configuration.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-25 21:25:25 +01:00
..
options.js fix(options): guard JSON.parse of optionCssFiles so the options page works at global level 2026-11-25 21:25:25 +01:00
options.twig fix(options): guard JSON.parse of optionCssFiles so the options page works at global level 2026-11-25 21:25:25 +01:00