Update doc

This commit is contained in:
Laurent Destailleur 2020-10-17 18:16:03 +02:00
parent fb3d18f962
commit f2fafe04b6
2 changed files with 6 additions and 2 deletions

View File

@ -6568,10 +6568,12 @@ abstract class CommonObject
var parent = $(this).find("option[parent]:first").attr("parent");
var infos = parent.split(":");
var parent_list = infos[0];
showOptions(child_list, parent_list);
/* Activate the handler to call showOptions on each future change */
$("select[name=\""+parent_list+"\"]").change(function() {
showOptions(child_list, parent_list);
});
showOptions(child_list, parent_list);
});
}

View File

@ -196,10 +196,12 @@ if (empty($reshook) && is_array($extrafields->attributes[$object->table_element]
var parent = $(this).find("option[parent]:first").attr("parent");
var infos = parent.split(":");
var parent_list = infos[0];
showOptions(child_list, parent_list);
/* Activate the handler to call showOptions on each future change */
$("select[name=\""+parent_list+"\"]").change(function() {
showOptions(child_list, parent_list);
});
showOptions(child_list, parent_list);
});
}
setListDependencies();