From 1de086ebe0e571785099f8c31e56a7e3af1d24ed Mon Sep 17 00:00:00 2001 From: cp6 Date: Wed, 27 Jan 2021 10:30:06 +1100 Subject: [PATCH] On select type DEDI check "is dedi cpu" When selecting DEDI as the server type, "dedi cpu" will become checked. --- assets/js/scripts.min.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/assets/js/scripts.min.js b/assets/js/scripts.min.js index 1938021..0a48a5a 100644 --- a/assets/js/scripts.min.js +++ b/assets/js/scripts.min.js @@ -294,6 +294,12 @@ $(document).on("click", "#fillIpv4", function () { } }); +$('#virt').change(function(){ + if($(this).val() == 'DEDI'){ + $('#dedi_cpu').prop("checked", true); + } +}); + function modalServerEdit(id) { $.ajax({ type: "GET",