From 52ea0f2d0ad8e4c15d4117492611df08c4810ea8 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 22 Dec 2019 13:55:58 -0800 Subject: [PATCH] Fix allocation management --- resources/views/admin/nodes/view/allocation.blade.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/views/admin/nodes/view/allocation.blade.php b/resources/views/admin/nodes/view/allocation.blade.php index c6e30db5d..4777b82f3 100644 --- a/resources/views/admin/nodes/view/allocation.blade.php +++ b/resources/views/admin/nodes/view/allocation.blade.php @@ -218,7 +218,7 @@ }, function () { $.ajax({ method: 'DELETE', - url: '/admin/nodes/view/' + Pterodactyl.node.id + '/allocation/remove/' + allocation, + url: '/admin/nodes/view/' + {{ $node->id }} + '/allocation/remove/' + allocation, headers: { 'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content') }, }).done(function (data) { element.parent().parent().addClass('warning').delay(100).fadeOut(); @@ -247,7 +247,7 @@ clearTimeout(fadeTimers[element.data('id')]); $.ajax({ method: 'POST', - url: '/admin/nodes/view/' + Pterodactyl.node.id + '/allocation/alias', + url: '/admin/nodes/view/' + {{ $node->id }} + '/allocation/alias', headers: { 'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content') }, data: { alias: element.val(), @@ -321,7 +321,7 @@ }, function () { $.ajax({ method: 'DELETE', - url: '/admin/nodes/view/' + Pterodactyl.node.id + '/allocations', + url: '/admin/nodes/view/' + {{ $node->id }} + '/allocations', headers: {'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content')}, data: JSON.stringify({ allocations: selectedIds