Fix allocation management
This commit is contained in:
parent
bc3286c7e4
commit
52ea0f2d0a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue