FIX #8232
This commit is contained in:
parent
ad96229ec4
commit
5a56e802d9
@ -5835,9 +5835,11 @@ abstract class CommonObject
|
|||||||
jQuery(document).ready(function() {
|
jQuery(document).ready(function() {
|
||||||
function showOptions(child_list, parent_list)
|
function showOptions(child_list, parent_list)
|
||||||
{
|
{
|
||||||
var val = $("select[name=\"options_"+parent_list+"\"]").val();
|
var val = $("select[name="+parent_list+"]").val();
|
||||||
|
|
||||||
var parentVal = parent_list + ":" + val;
|
var parentVal = parent_list + ":" + val;
|
||||||
if(val > 0) {
|
if(val > 0) {
|
||||||
|
|
||||||
$("select[name=\""+child_list+"\"] option[parent]").hide();
|
$("select[name=\""+child_list+"\"] option[parent]").hide();
|
||||||
$("select[name=\""+child_list+"\"] option[parent=\""+parentVal+"\"]").show();
|
$("select[name=\""+child_list+"\"] option[parent=\""+parentVal+"\"]").show();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -151,7 +151,7 @@ if (empty($reshook) && ! empty($extrafields->attributes[$object->table_element][
|
|||||||
jQuery(document).ready(function() {
|
jQuery(document).ready(function() {
|
||||||
function showOptions(child_list, parent_list)
|
function showOptions(child_list, parent_list)
|
||||||
{
|
{
|
||||||
var val = $("select[name=\"options_"+parent_list+"\"]").val();
|
var val = $("select[name="+parent_list+"]").val();
|
||||||
var parentVal = parent_list + ":" + val;
|
var parentVal = parent_list + ":" + val;
|
||||||
if(val > 0) {
|
if(val > 0) {
|
||||||
$("select[name=\""+child_list+"\"] option[parent]").hide();
|
$("select[name=\""+child_list+"\"] option[parent]").hide();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user