summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2014-04-26 12:31:16 +0000
committerTed Trask <ttrask01@yahoo.com>2014-04-26 12:31:16 +0000
commit7fda712a4731e72c94f97ed19a9dcfdfc21c7fe7 (patch)
treef90046c53254486909a378a603e6bc1f679ab9f1
parent750b422ef4b1ee7123704b96da1caf936dc22a1b (diff)
downloadacf-alpine-baselayout-7fda712a4731e72c94f97ed19a9dcfdfc21c7fe7.tar.bz2
acf-alpine-baselayout-7fda712a4731e72c94f97ed19a9dcfdfc21c7fe7.tar.xz
Change how unused options are hidden in update html view
-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);