Skip to content

Commit b850256

Browse files
committed
Fix auto-deploy checkbox behavior
1 parent 06756af commit b850256

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
2323
* File manager actions would not trigger properly if text in a row was used to right-click from.
2424
* File manager rename field would not disappear when pressing the escape key in chrome. [#121](https://github.com/Pterodactyl/Panel/issues/121)
2525
* Fixes bug where server image assigned was not being saved to the database.
26+
* Fixes instances where selecting auto-deploy would not hide the node selection dropdown.
2627

2728
## v0.5.0-pre.1 (Bodacious Boreopterus)
2829

resources/views/admin/servers/new.blade.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,9 +354,10 @@
354354
355355
$('input[name="auto_deploy"]').change(function () {
356356
if ($(this).is(':checked')) {
357-
$('#allocationPort, #allocationIP, #allocationNode').addClass('hidden');
357+
$('#allocationPort, #allocationIP, #allocationNode').hide();
358358
} else {
359359
currentLocation = null;
360+
$('#allocationPort, #allocationIP, #allocationNode').show().addClass('hidden');
360361
$('#getLocation').trigger('change', function (e) {
361362
alert('triggered');
362363
});

0 commit comments

Comments
 (0)