update os group fix select2

This commit is contained in:
pbao9
2026-02-02 09:29:27 +07:00
parent af71413a69
commit a2a75b2015
7 changed files with 214 additions and 122 deletions
@@ -30,8 +30,10 @@ $selectedOsGroupId = old('os_group_id') ?? ($model?->os?->os_group_id ?? null);
}
window.osComponentInitialized = true;
// Initialize Select2
initSelect2();
// Initialize Select2 using global function
if (typeof window.initSelect2 === 'function') {
window.initSelect2();
}
const $host = $('.host_id');
const $osGroup = $('.os_group_id');