From a2f15b4f6b5c4620b160547378a7c7de04e75627 Mon Sep 17 00:00:00 2001 From: Benn Oshrin Date: Fri, 23 May 2025 20:35:51 -0400 Subject: [PATCH] Additional commit for CFM-104 --- .../templates/MatchServerAttributes/fields.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/plugins/CoreServer/templates/MatchServerAttributes/fields.inc b/app/plugins/CoreServer/templates/MatchServerAttributes/fields.inc index 333c89e45..537d64c54 100644 --- a/app/plugins/CoreServer/templates/MatchServerAttributes/fields.inc +++ b/app/plugins/CoreServer/templates/MatchServerAttributes/fields.inc @@ -85,6 +85,16 @@ function jsLocalOnLoad() { updateGadgets(true); + + // On page load, set the appropriate widget to the current type (if set) + var curattr = "attribute ?? '')) ?>"; + var curtype = "type_id ?? ''?>"; + + if(curattr != "") { + curattr = curattr + "-type-id"; + + document.getElementById(curattr).value = curtype; + } }