diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2019-10-18 15:50:34 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2019-10-18 15:50:34 +0200 |
commit | 0968351067f99e8afc882d4237902642e608e6f5 (patch) | |
tree | 202d554dcc6135a88c11bee78660c53a47df2931 /assets/js/edit.js | |
parent | 917a3971302791d9df67c047c4e663c9fb04f0c4 (diff) | |
download | wcms-0968351067f99e8afc882d4237902642e608e6f5.tar.gz wcms-0968351067f99e8afc882d4237902642e608e6f5.zip |
Big naming Clean-up Art -> Page
Diffstat (limited to 'assets/js/edit.js')
-rw-r--r-- | assets/js/edit.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/assets/js/edit.js b/assets/js/edit.js index b4c173f..b0f8915 100644 --- a/assets/js/edit.js +++ b/assets/js/edit.js @@ -1,6 +1,6 @@ let form; let unsavedChanges = false; -const arturl = basepath + artid; +const pageurl = basepath + pageid; const myWorker = new Worker(jspath + 'worker.js'); window.onload = () => { @@ -17,7 +17,7 @@ window.onload = () => { myWorker.postMessage({ type: 'init', - arturl: arturl, + pageurl: pageurl, }); myWorker.postMessage({ type: 'stillEditing' }); }; @@ -63,7 +63,7 @@ function submitHandler(e) { */ function confirmExit(e) { if (unsavedChanges) { - const url = arturl + '/removeeditby'; + const url = pageurl + '/removeeditby'; console.log('send quit editing') fetch(url, { method: 'POST' }) .then(handleErrors) |