Skip to content

Commit 52ea0f2

Browse files
committed
Fix allocation management
1 parent bc3286c commit 52ea0f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

resources/views/admin/nodes/view/allocation.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@
218218
}, function () {
219219
$.ajax({
220220
method: 'DELETE',
221-
url: '/admin/nodes/view/' + Pterodactyl.node.id + '/allocation/remove/' + allocation,
221+
url: '/admin/nodes/view/' + {{ $node->id }} + '/allocation/remove/' + allocation,
222222
headers: { 'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content') },
223223
}).done(function (data) {
224224
element.parent().parent().addClass('warning').delay(100).fadeOut();
@@ -247,7 +247,7 @@ function sendAlias(element) {
247247
clearTimeout(fadeTimers[element.data('id')]);
248248
$.ajax({
249249
method: 'POST',
250-
url: '/admin/nodes/view/' + Pterodactyl.node.id + '/allocation/alias',
250+
url: '/admin/nodes/view/' + {{ $node->id }} + '/allocation/alias',
251251
headers: { 'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content') },
252252
data: {
253253
alias: element.val(),
@@ -321,7 +321,7 @@ function deleteSelected() {
321321
}, function () {
322322
$.ajax({
323323
method: 'DELETE',
324-
url: '/admin/nodes/view/' + Pterodactyl.node.id + '/allocations',
324+
url: '/admin/nodes/view/' + {{ $node->id }} + '/allocations',
325325
headers: {'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content')},
326326
data: JSON.stringify({
327327
allocations: selectedIds

0 commit comments

Comments
 (0)