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
@@ -22,8 +22,10 @@ $selectedHostId = old('module_host_id') ?? ($model?->module_host_id ?? ($model?-
}
window.hostComponentInitialized = true;
// Initialize Select2
initSelect2();
// Initialize Select2 using global function
if (typeof window.initSelect2 === 'function') {
window.initSelect2();
}
const $datacenter = $('.datacenter_id');
const $host = $('.host_id');