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() {
|
||||
$('#enabled').checked = !$('#enabled').checked;
|
||||
$('#enabled').dispatchEvent(new MouseEvent('click', {bubbles: true}));
|
||||
}
|
||||
|
||||
function save() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user