notify event subscribers when toggling the style via Alt-Enter
This commit is contained in:
parent
72e0f5fbf5
commit
dc1cd890ee
|
@ -341,7 +341,7 @@ function setCleanSection(section) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleStyle() {
|
function toggleStyle() {
|
||||||
$('#enabled').checked = !$('#enabled').checked;
|
$('#enabled').dispatchEvent(new MouseEvent('click', {bubbles: true}));
|
||||||
}
|
}
|
||||||
|
|
||||||
function save() {
|
function save() {
|
||||||
|
|
|
@ -186,6 +186,7 @@ function createSourceEditor(style) {
|
||||||
dirty.modify('enabled', style.enabled, value);
|
dirty.modify('enabled', style.enabled, value);
|
||||||
style.enabled = value;
|
style.enabled = value;
|
||||||
updateMeta();
|
updateMeta();
|
||||||
|
$('#enabled').dispatchEvent(new Event('change', {bubbles: true}));
|
||||||
}
|
}
|
||||||
|
|
||||||
function save() {
|
function save() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user