summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--interfaces-update-html.lsp6
1 files 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('<option selected value="">[]</option>');
- $(".optional").parent().hide().prev().hide();
+ $(".optional").parents(".item").hide();
}
$(function(){
$("select[name='family']").change(familychange);