refactor: Update front-end assets by removing Select2 integration from various forms and adjusting the build configuration.
This commit is contained in:
@@ -7,7 +7,7 @@ $selectedHostId = old('module_host_id') ?? ($model?->module_host_id ?? ($model?-
|
||||
<div class="row form-group align-items-center mb-0">
|
||||
<label for="host_id" class="col-md-3 text-right">Chọn Host</label>
|
||||
<div class="col-md-9 p-1 bg-customer">
|
||||
<select class="form-control select2 single__select host_id" name="module_host_id"
|
||||
<select class="form-control host_id" name="module_host_id"
|
||||
data-selected="{{ $selectedHostId }}"
|
||||
data-placeholder="--- Chọn Host ---">
|
||||
</select>
|
||||
@@ -22,11 +22,6 @@ $selectedHostId = old('module_host_id') ?? ($model?->module_host_id ?? ($model?-
|
||||
}
|
||||
window.hostComponentInitialized = true;
|
||||
|
||||
// Initialize Select2 using global function
|
||||
if (typeof window.initSelect2 === 'function') {
|
||||
window.initSelect2();
|
||||
}
|
||||
|
||||
const $datacenter = $('.datacenter_id');
|
||||
const $host = $('.host_id');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user