Fix auto-deploy checkbox behavior

This commit is contained in:
Dane Everitt 2016-10-07 13:47:14 -04:00
parent 06756af994
commit b850256657
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
2 changed files with 3 additions and 1 deletions

View File

@ -23,6 +23,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
* File manager actions would not trigger properly if text in a row was used to right-click from.
* File manager rename field would not disappear when pressing the escape key in chrome. [#121](https://github.com/Pterodactyl/Panel/issues/121)
* Fixes bug where server image assigned was not being saved to the database.
* Fixes instances where selecting auto-deploy would not hide the node selection dropdown.
## v0.5.0-pre.1 (Bodacious Boreopterus)

View File

@ -354,9 +354,10 @@ $(document).ready(function () {
$('input[name="auto_deploy"]').change(function () {
if ($(this).is(':checked')) {
$('#allocationPort, #allocationIP, #allocationNode').addClass('hidden');
$('#allocationPort, #allocationIP, #allocationNode').hide();
} else {
currentLocation = null;
$('#allocationPort, #allocationIP, #allocationNode').show().addClass('hidden');
$('#getLocation').trigger('change', function (e) {
alert('triggered');
});