summaryrefslogtreecommitdiffstats
path: root/web_src/js/features/admin-common.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/features/admin-common.js')
-rw-r--r--web_src/js/features/admin-common.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web_src/js/features/admin-common.js b/web_src/js/features/admin-common.js
index 4f12c1846d..1a3f800080 100644
--- a/web_src/js/features/admin-common.js
+++ b/web_src/js/features/admin-common.js
@@ -1,4 +1,4 @@
-const {csrf} = window.config;
+const {csrfToken} = window.config;
export function initAdminCommon() {
if ($('.admin').length === 0) {
@@ -204,7 +204,7 @@ export function initAdminCommon() {
}
});
$.post($this.data('link'), {
- _csrf: csrf,
+ _csrf: csrfToken,
ids
}).done(() => {
window.location.href = $this.data('redirect');