From 9193db9d465447d065ea2997da72514ee5602441 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Fri, 25 Dec 2020 15:43:44 -0800 Subject: [PATCH] Reset docker images correctly when changing egg; closes #2895 --- public/themes/pterodactyl/js/admin/new-server.js | 1 + resources/views/admin/servers/new.blade.php | 2 +- resources/views/admin/servers/view/startup.blade.php | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/public/themes/pterodactyl/js/admin/new-server.js b/public/themes/pterodactyl/js/admin/new-server.js index 67827cf06..39818963d 100644 --- a/public/themes/pterodactyl/js/admin/new-server.js +++ b/public/themes/pterodactyl/js/admin/new-server.js @@ -83,6 +83,7 @@ $('#pEggId').on('change', function (event) { let objectChain = _.get(parentChain, 'eggs.' + $(this).val(), null); const images = _.get(objectChain, 'docker_images', []) + $('#pDefaultContainer').html(''); for (let i = 0; i < images.length; i++) { let opt = document.createElement('option'); opt.value = images[i]; diff --git a/resources/views/admin/servers/new.blade.php b/resources/views/admin/servers/new.blade.php index 50ae7b90d..af1db5056 100644 --- a/resources/views/admin/servers/new.blade.php +++ b/resources/views/admin/servers/new.blade.php @@ -331,7 +331,7 @@ // END Persist 'Service Variables' - {!! Theme::js('js/admin/new-server.js?v=20201212') !!} + {!! Theme::js('js/admin/new-server.js?v=20201225') !!}