Fix inability to delete a node, closes #741
This commit is contained in:
parent
952d8d154c
commit
b07052548c
2 changed files with 2 additions and 1 deletions
|
@ -11,6 +11,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
|
||||||
* `[beta.1]` — Fixes missing check in environment setup that would leave the Hashids salt empty.
|
* `[beta.1]` — Fixes missing check in environment setup that would leave the Hashids salt empty.
|
||||||
* `[beta.1]` — Fixes bug preventing loading of allocations when trying to create a new server.
|
* `[beta.1]` — Fixes bug preventing loading of allocations when trying to create a new server.
|
||||||
* `[beta.1]` — Fixes bug causing inability to create new servers on the Panel.
|
* `[beta.1]` — Fixes bug causing inability to create new servers on the Panel.
|
||||||
|
* `[beta.1]` — Fixes bug causing inability to delete an allocation due to misconfigured JS.
|
||||||
|
|
||||||
## v0.7.0-beta.1 (Derelict Dermodactylus)
|
## v0.7.0-beta.1 (Derelict Dermodactylus)
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -177,7 +177,7 @@
|
||||||
}, function () {
|
}, function () {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
method: 'DELETE',
|
method: 'DELETE',
|
||||||
url: Router.route('admin.nodes.view.allocation.removeSingle', { id: Pterodactyl.node.id, allocation: allocation }),
|
url: Router.route('admin.nodes.view.allocation.removeSingle', { node: Pterodactyl.node.id, allocation: 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();
|
||||||
|
|
Loading…
Reference in a new issue