refactor: Update front-end assets by removing Select2 integration from various forms and adjusting the build configuration.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user