Fix allocation management

This commit is contained in:
Dane Everitt 2019-12-22 13:55:58 -08:00
parent bc3286c7e4
commit 52ea0f2d0a
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
1 changed files with 3 additions and 3 deletions

View File

@ -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