File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
resources/views/admin/nodes/view Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments