trigger live preview also for changes in applies-to

This commit is contained in:
tophf 2018-08-01 19:23:40 +03:00
parent e5a557369b
commit 68cc033942

View File

@ -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);
}