Aded documentation module

This commit is contained in:
Mark Gregory
2026-06-12 15:32:09 +01:00
parent a2c68bc4dc
commit 1c9ed1a537
18 changed files with 418 additions and 85 deletions
@@ -0,0 +1,30 @@
@script
<script>
const initialiseHelpdeskSelect2 = function () {
if (!window.jQuery || !window.jQuery.fn || !window.jQuery.fn.select2) {
return;
}
window.jQuery('[data-helpdesk-select2], [data-helpdesk-select]').each(function () {
const element = window.jQuery(this);
if (element.data('select2')) {
return;
}
element.select2({
width: '100%',
theme: 'default'
});
element.on('change', function () {
this.dispatchEvent(new Event('input', { bubbles: true }));
this.dispatchEvent(new Event('change', { bubbles: true }));
});
});
};
initialiseHelpdeskSelect2();
document.addEventListener('livewire:navigated', initialiseHelpdeskSelect2);
</script>
@endscript