Merge branch 'ent-12620-elementos-de-lista-negra-de-deteccion-de-cambios-en-inventario-en-el-setup-no-funciona' into 'develop'
Ent 12620 elementos de lista negra de deteccion de cambios en inventario en el setup no funciona See merge request artica/pandorafms!6745
This commit is contained in:
commit
a2436cf60e
|
@ -1113,9 +1113,9 @@ $(document).ready (function () {
|
||||||
id_imodule = $(value).attr('value');
|
id_imodule = $(value).attr('value');
|
||||||
$("select[name='inventory_changes_blacklist[]']")
|
$("select[name='inventory_changes_blacklist[]']")
|
||||||
.append(
|
.append(
|
||||||
$("<option></option>")
|
$("<option selected='selected'></option>")
|
||||||
.val(id_imodule)
|
.val(id_imodule)
|
||||||
.html('<i>' + imodule_name + '</i>')
|
.text(imodule_name)
|
||||||
);
|
);
|
||||||
$("#inventory_changes_blacklist_out")
|
$("#inventory_changes_blacklist_out")
|
||||||
.find("option[value='" + id_imodule + "']").remove();
|
.find("option[value='" + id_imodule + "']").remove();
|
||||||
|
@ -1141,7 +1141,7 @@ $(document).ready (function () {
|
||||||
.append(
|
.append(
|
||||||
$("<option></option>")
|
$("<option></option>")
|
||||||
.val(id_imodule)
|
.val(id_imodule)
|
||||||
.html('<i>' + imodule_name + '</i>')
|
.text(imodule_name)
|
||||||
);
|
);
|
||||||
$("#inventory_changes_blacklist")
|
$("#inventory_changes_blacklist")
|
||||||
.find("option[value='" + id_imodule + "']").remove();
|
.find("option[value='" + id_imodule + "']").remove();
|
||||||
|
@ -1157,12 +1157,15 @@ $(document).ready (function () {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("#inventory_changes_blacklist > option").each(function(key, value) {
|
||||||
|
$(value).prop('selected',true).trigger('change');
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#submit-update_button").click(function () {
|
|
||||||
$('#inventory_changes_blacklist option').map(function(){
|
|
||||||
$(this).prop('selected', true);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("#inventory_changes_blacklist > option").each(function(key, value) {
|
||||||
|
$(value).prop('selected',true).trigger('change');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue