From 764d34a7d347d653414e5f5c632e02499edaef04 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 21 Jun 2020 12:21:31 +0200 Subject: Process token retrieve through Slim controller --- assets/common/js/thumbnails-update.js | 2 +- assets/default/js/base.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'assets') diff --git a/assets/common/js/thumbnails-update.js b/assets/common/js/thumbnails-update.js index 35608169..b37a32f3 100644 --- a/assets/common/js/thumbnails-update.js +++ b/assets/common/js/thumbnails-update.js @@ -33,7 +33,7 @@ function updateThumb(basePath, ids, i, elements) { elements.thumbnail.innerHTML = ``; } if (i < ids.length) { - updateThumb(ids, i, elements); + updateThumb(basePath, ids, i, elements); } } }; diff --git a/assets/default/js/base.js b/assets/default/js/base.js index af3d650c..76e4fe2a 100644 --- a/assets/default/js/base.js +++ b/assets/default/js/base.js @@ -27,7 +27,7 @@ function findParent(element, tagName, attributes) { */ function refreshToken(basePath) { const xhr = new XMLHttpRequest(); - xhr.open('GET', `${basePath}/?do=token`); + xhr.open('GET', `${basePath}/admin/token`); xhr.onload = () => { const token = document.getElementById('token'); token.setAttribute('value', xhr.responseText); -- cgit v1.2.3