{{-- Gallery Loader script module --}} const loadGallery = () => { const $container = $('#gallery-items-container-' + pickerId); $container.html('
Nenhuma mídia encontrada nesta busca.
'); }); }; const selectMedia = (id, path, alt = '', mimeType = '', description = '') => { if (activeCallback) { activeCallback(id, path, alt, mimeType, description); } var myPickerModal = bootstrap.Modal.getInstance(document.getElementById('gallery-picker-modal-' + pickerId)); if (myPickerModal) myPickerModal.hide(); };