Update doc
This commit is contained in:
parent
fb3d18f962
commit
f2fafe04b6
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user