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');
|
||||
$("select[name='inventory_changes_blacklist[]']")
|
||||
.append(
|
||||
$("<option></option>")
|
||||
$("<option selected='selected'></option>")
|
||||
.val(id_imodule)
|
||||
.html('<i>' + imodule_name + '</i>')
|
||||
.text(imodule_name)
|
||||
);
|
||||
$("#inventory_changes_blacklist_out")
|
||||
.find("option[value='" + id_imodule + "']").remove();
|
||||
|
@ -1141,7 +1141,7 @@ $(document).ready (function () {
|
|||
.append(
|
||||
$("<option></option>")
|
||||
.val(id_imodule)
|
||||
.html('<i>' + imodule_name + '</i>')
|
||||
.text(imodule_name)
|
||||
);
|
||||
$("#inventory_changes_blacklist")
|
||||
.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>
|
||||
|
|
Loading…
Reference in New Issue