aboutsummaryrefslogtreecommitdiff
path: root/assets/js/edit.js
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2019-10-18 15:50:34 +0200
committervincent-peugnet <v.peugnet@free.fr>2019-10-18 15:50:34 +0200
commit0968351067f99e8afc882d4237902642e608e6f5 (patch)
tree202d554dcc6135a88c11bee78660c53a47df2931 /assets/js/edit.js
parent917a3971302791d9df67c047c4e663c9fb04f0c4 (diff)
downloadwcms-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.js6
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)