Update commonobject.class.php

This commit is contained in:
Laurent Destailleur 2020-11-13 10:02:34 +01:00 committed by GitHub
parent 2da8fb75a8
commit 5498800ad6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6995,12 +6995,12 @@ abstract class CommonObject
jQuery("select option[parent]").parent().each(function() { jQuery("select option[parent]").parent().each(function() {
var orig_select = {}; var orig_select = {};
var child_list = $(this).attr("name"); var child_list = $(this).attr("name");
orig_select [child_list] = $(this).clone(); orig_select[child_list] = $(this).clone();
var parent = $(this).find("option[parent]:first").attr("parent"); var parent = $(this).find("option[parent]:first").attr("parent");
var infos = parent.split(":"); var infos = parent.split(":");
var parent_list = infos[0]; var parent_list = infos[0];
$("select[name=\""+parent_list+"\"]").change(function() { $("select[name=\""+parent_list+"\"]").change(function() {
showOptions(child_list, parent_list, orig_select [child_list]); showOptions(child_list, parent_list, orig_select[child_list]);
}); });
}); });
} }