mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
#12620 fixed blacklist items in setup
This commit is contained in:
parent
4d8aa8f697
commit
725c5d964c
@ -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…
x
Reference in New Issue
Block a user