add missing parenthesis

pull/144/head
Henrique Dias 2016-09-17 08:25:09 +01:00
parent 0185a9e143
commit c45fedccb4
1 changed files with 7 additions and 7 deletions

View File

@ -802,7 +802,7 @@ document.addEventListener("editor", (event) => {
Array.from(addFrontMatterItemButtons).forEach(button => {
button.addEventListener('click', addFrontMatterItem);
});
let saveContent = function() {
let data = form2js(document.querySelector('form'));
let html = button.changeToLoading();
@ -822,17 +822,17 @@ document.addEventListener("editor", (event) => {
event.preventDefault();
saveContent();
});
window.addEventListener('keydown', (event) => {
if (event.ctrlKey || event.metaKey) {
switch (String.fromCharCode(event.which).toLowerCase()) {
case 's':
event.preventDefault();
saveContent();
break;
case 's':
event.preventDefault();
saveContent();
break;
}
}
}
});
return false;
});