diff --git a/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Views/Shared/Components/EmailsWidget/Default.js b/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Views/Shared/Components/EmailsWidget/Default.js index c754c01bb..34dc4acb9 100644 --- a/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Views/Shared/Components/EmailsWidget/Default.js +++ b/applications/Unity.GrantManager/src/Unity.GrantManager.Web/Views/Shared/Components/EmailsWidget/Default.js @@ -962,21 +962,6 @@ } } - async function handleTemplateSelectChange($select) { - const selectedTemplateId = $select.val(); - if (!selectedTemplateId) return; - - $select.val(''); - - const template = await fetchTemplateById(selectedTemplateId); - if (!template) { - abp.notify.error('Template not found.'); - return; - } - - await applyTemplateToEmail(template); - } - async function fetchTemplateById(templateId) { let templates = cachedTemplates; if (!templates) { @@ -995,15 +980,6 @@ return templates.find(t => t.id === templateId || t.Id === templateId); } - async function handleTemplateSelectOpen($select) { - try { - await ensureTemplatesSelectOptionsLoaded($select); - } catch (err) { - console.error('Failed to load templates:', err); - abp.notify.error('Failed to load templates.'); - } - } - function updateSelectedTemplateLabel(templateName, templateId) { const normalizedTemplateName = normalizeTemplateName(templateName); const dropdownLabel = normalizedTemplateName || 'Templates'; @@ -1407,24 +1383,8 @@ // Templates button - add to TinyMCE menu bar at bottom if (!$menubar.find('.templates-button-container').length) { - // Create select element for templates - const $templatesSelect = $('