refactor: Update front-end assets by removing Select2 integration from various forms and adjusting the build configuration.

This commit is contained in:
pbao9
2026-02-28 21:29:13 +07:00
parent 5c97768707
commit 6b18c3ff12
36 changed files with 79 additions and 493 deletions
@@ -73,26 +73,7 @@
@stack('plugin-scripts')
<!-- end plugin js -->
<!-- Global Select2 initialization -->
<script>
window.initSelect2 = function() {
$(".select2").each(function () {
if (!$(this).hasClass('select2-hidden-accessible')) {
var placeholder = $(this).data('placeholder') || 'Select an option';
$(this).select2({
allowClear: true,
width: "100%",
placeholder: placeholder,
});
}
});
};
$(document).ready(function () {
window.initSelect2();
});
// Global ModalManager initialization
<!-- Global ModalManager initialization -->
document.addEventListener('DOMContentLoaded', function() {
if (typeof ModalManager !== 'undefined') {
ModalManager.init();