Update all places in the code referencing named routes using JS that doesn't exist now
This commit is contained in:
parent
14b1f13fe0
commit
447c4291ad
20 changed files with 12 additions and 2115 deletions
|
@ -218,7 +218,7 @@
|
|||
}, function () {
|
||||
$.ajax({
|
||||
method: 'DELETE',
|
||||
url: Router.route('admin.nodes.view.allocation.removeSingle', { node: Pterodactyl.node.id, allocation: allocation }),
|
||||
url: '/admin/nodes/view/' + Pterodactyl.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: Router.route('admin.nodes.view.allocation.setAlias', { id: Pterodactyl.node.id }),
|
||||
url: '/admin/nodes/view/' + Pterodactyl.node.id + '/allocation/alias',
|
||||
headers: { 'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content') },
|
||||
data: {
|
||||
alias: element.val(),
|
||||
|
@ -321,9 +321,7 @@
|
|||
}, function () {
|
||||
$.ajax({
|
||||
method: 'DELETE',
|
||||
url: Router.route('admin.nodes.view.allocation.removeMultiple', {
|
||||
node: Pterodactyl.node.id
|
||||
}),
|
||||
url: '/admin/nodes/view/' + Pterodactyl.node.id + '/allocations',
|
||||
headers: {'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content')},
|
||||
data: JSON.stringify({
|
||||
allocations: selectedIds
|
||||
|
|
Reference in a new issue