From 7fda712a4731e72c94f97ed19a9dcfdfc21c7fe7 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Sat, 26 Apr 2014 12:31:16 +0000 Subject: Change how unused options are hidden in update html view --- interfaces-update-html.lsp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/interfaces-update-html.lsp b/interfaces-update-html.lsp index 4cf2417..da0cde2 100644 --- a/interfaces-update-html.lsp +++ b/interfaces-update-html.lsp @@ -32,9 +32,9 @@ end // show / hide all of the optional inputs $(".optional").each(function() { if (jQuery.inArray($(this).attr('name'), optionalarray)==-1) { - $(this).parent().hide().prev().hide(); + $(this).parents(".item").hide(); } else { - $(this).parent().show().prev().show(); + $(this).parents(".item").show(); } }); } @@ -56,7 +56,7 @@ end }); } method.append(''); - $(".optional").parent().hide().prev().hide(); + $(".optional").parents(".item").hide(); } $(function(){ $("select[name='family']").change(familychange); -- cgit v1.2.3