notify event subscribers when toggling the style via Alt-Enter

This commit is contained in:
tophf 2018-01-14 17:40:09 +03:00
parent 72e0f5fbf5
commit dc1cd890ee
2 changed files with 2 additions and 1 deletions

View File

@ -341,7 +341,7 @@ function setCleanSection(section) {
}
function toggleStyle() {
$('#enabled').checked = !$('#enabled').checked;
$('#enabled').dispatchEvent(new MouseEvent('click', {bubbles: true}));
}
function save() {

View File

@ -186,6 +186,7 @@ function createSourceEditor(style) {
dirty.modify('enabled', style.enabled, value);
style.enabled = value;
updateMeta();
$('#enabled').dispatchEvent(new Event('change', {bubbles: true}));
}
function save() {