From b850256657c62ad5cf23c172b3bbee98250efbff Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Fri, 7 Oct 2016 13:47:14 -0400 Subject: [PATCH] Fix auto-deploy checkbox behavior --- CHANGELOG.md | 1 + resources/views/admin/servers/new.blade.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ca09f808..26291d970 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/resources/views/admin/servers/new.blade.php b/resources/views/admin/servers/new.blade.php index 52da62dfe..0d21fde66 100644 --- a/resources/views/admin/servers/new.blade.php +++ b/resources/views/admin/servers/new.blade.php @@ -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'); });