aboutsummaryrefslogtreecommitdiff
path: root/src/edit.js
diff options
context:
space:
mode:
authorVincent Peugnet <33429034+vincent-peugnet@users.noreply.github.com>2019-11-05 18:31:05 +0100
committerGitHub <noreply@github.com>2019-11-05 18:31:05 +0100
commitf1f63f556c41c99d45cd610186b0982383eff375 (patch)
treec62c88864fa4bdc0d54e0bc90d174fae2d8adce3 /src/edit.js
parent9b43088415efee1f921feb9c858bcd924f1b6208 (diff)
parentd73bbbcf6c7bfe7291ac1593004581df6c96b3c8 (diff)
downloadwcms-f1f63f556c41c99d45cd610186b0982383eff375.tar.gz
wcms-f1f63f556c41c99d45cd610186b0982383eff375.zip
Merge pull request #25 from n-peugnet/add-checkall-checkbox
Add checkall checkbox in home page
Diffstat (limited to 'src/edit.js')
-rw-r--r--src/edit.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/edit.js b/src/edit.js
index 6c2f328..062a0de 100644
--- a/src/edit.js
+++ b/src/edit.js
@@ -15,7 +15,7 @@ let editors = [];
let unsavedChanges = false;
const inputEvent = new InputEvent('input');
-window.onload = () => {
+window.addEventListener('load', () => {
form = document.getElementById('update');
let inputs = form.elements;
for (const input of inputs) {
@@ -86,7 +86,7 @@ window.onload = () => {
window.onkeydown = keyboardHandler;
window.onbeforeunload = confirmExit;
-};
+});
/**
* Manage a keyboardEvent