mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
Interfaces Other Types - Dynamic Options (#5300)
A more deterministic direct approach that won't break with changing or differing ancestry depths. Also cleaner and clearer than .parent().parent().
This commit is contained in:
parent
f673ee396c
commit
f76691b984
@ -186,9 +186,9 @@ legacy_html_escape_form_data($pconfig);
|
||||
$( document ).ready(function() {
|
||||
$("#proto").change(function(){
|
||||
let this_proto = $("#proto").val();
|
||||
$(".proto").parent().parent().hide();
|
||||
$(".proto").closest('tr').hide();
|
||||
$(".proto").prop( "disabled", true );
|
||||
$(".proto_"+this_proto).parent().parent().show();
|
||||
$(".proto_"+this_proto).closest('tr').show();
|
||||
$(".proto_"+this_proto).prop( "disabled", false );
|
||||
$('.selectpicker').selectpicker('refresh');
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user