mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +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');
|
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").each(function(key, value) {
|
||||||
$('#inventory_changes_blacklist option').map(function(){
|
$(value).prop('selected',true).trigger('change');
|
||||||
$(this).prop('selected', true);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user