22 lines
571 B
JavaScript
22 lines
571 B
JavaScript
document.addEventListener('DOMContentLoaded', function() {
|
|
const assignedTo = document.getElementById('assigned_to');
|
|
if (assignedTo) {
|
|
new Choices(assignedTo, {
|
|
removeItemButton: true,
|
|
});
|
|
}
|
|
|
|
const category = document.getElementById('category_id');
|
|
if (category) {
|
|
new Choices(category, {
|
|
removeItemButton: true,
|
|
});
|
|
}
|
|
|
|
const location = document.getElementById('location_id');
|
|
if (location) {
|
|
new Choices(location, {
|
|
removeItemButton: true,
|
|
});
|
|
}
|
|
}); |