From 0968351067f99e8afc882d4237902642e608e6f5 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Fri, 18 Oct 2019 15:50:34 +0200 Subject: Big naming Clean-up Art -> Page --- assets/js/edit.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'assets/js/edit.js') 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) -- cgit v1.2.3