Fix allocation management
This commit is contained in:
parent
bc3286c7e4
commit
52ea0f2d0a
|
@ -218,7 +218,7 @@
|
||||||
}, function () {
|
}, function () {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
method: 'DELETE',
|
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') },
|
headers: { 'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content') },
|
||||||
}).done(function (data) {
|
}).done(function (data) {
|
||||||
element.parent().parent().addClass('warning').delay(100).fadeOut();
|
element.parent().parent().addClass('warning').delay(100).fadeOut();
|
||||||
|
@ -247,7 +247,7 @@
|
||||||
clearTimeout(fadeTimers[element.data('id')]);
|
clearTimeout(fadeTimers[element.data('id')]);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
method: 'POST',
|
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') },
|
headers: { 'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content') },
|
||||||
data: {
|
data: {
|
||||||
alias: element.val(),
|
alias: element.val(),
|
||||||
|
@ -321,7 +321,7 @@
|
||||||
}, function () {
|
}, function () {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
method: 'DELETE',
|
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')},
|
headers: {'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content')},
|
||||||
data: JSON.stringify({
|
data: JSON.stringify({
|
||||||
allocations: selectedIds
|
allocations: selectedIds
|
||||||
|
|
Loading…
Reference in New Issue