From 68cc0339428bd74b6183404cded9367351244c96 Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 1 Aug 2018 19:23:40 +0300 Subject: [PATCH] trigger live preview also for changes in applies-to --- edit/codemirror-editing-hooks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edit/codemirror-editing-hooks.js b/edit/codemirror-editing-hooks.js index e5914dc2..253c55d4 100644 --- a/edit/codemirror-editing-hooks.js +++ b/edit/codemirror-editing-hooks.js @@ -620,7 +620,7 @@ onDOMscriptReady('/codemirror.js').then(() => { editors.forEach(cm => cm[previewing ? 'on' : 'off']('changes', updatePreview)); const addRemove = previewing ? 'addEventListener' : 'removeEventListener'; $('#enabled')[addRemove]('change', updatePreview); - $('#sections')[addRemove]('change', updatePreview); + $('#sections')[addRemove]('input', updatePreview); if (!previewing || document.body.classList.contains('dirty')) { updatePreview(null, previewing); }