From 1e34cd3d3dedba2701d8b7604c74bcbf7b74f03e Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Thu, 18 Mar 2021 16:08:50 -0400 Subject: [PATCH] fixups to the rebase --- src/root/edit-jobset.tt | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/root/edit-jobset.tt b/src/root/edit-jobset.tt index 66eef42a..a8a99185 100644 --- a/src/root/edit-jobset.tt +++ b/src/root/edit-jobset.tt @@ -94,11 +94,11 @@
-
@@ -195,7 +195,7 @@ var id = 0; function update() { - if ($("#type").val() == 0) { + if ($("input[type='radio'][name='type']:checked").val() == 0) { $(".show-on-legacy").show(); $(".show-on-flake").hide(); } else { @@ -204,8 +204,7 @@ } } - $("#type-flake").click(function() { update(); }); - $("#type-legacy").click(function() { update(); }); + $("input[type='radio'][name='type']").change(function() { update(); }); update();