Improve email button UX with loading indicator
- Show '⏳ Email voorbereiden...' immediately when clicked
- Disable button during processing
- Use setTimeout to allow UI update before heavy processing
- Restore button state after mailto opens
This commit is contained in:
1 parent
16f4cc7bc8
commit
46fca0ccdf
5 files changed
+204
-136
No files matched your search
@@ -612,7 +612,7 @@ input.invalid, select.invalid, textarea.invalid {
|
|||||||
|
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
<button type="button" class="btn btn-primary" onclick="exportCSV()">📥 Exporteer CSV</button>
|
<button type="button" class="btn btn-primary" onclick="exportCSV()">📥 Exporteer CSV</button>
|
||||||
<button type="button" class="btn btn-success" onclick="sendEmail()">📧 Verstuur per Email</button>
|
<button type="button" class="btn btn-success" onclick="sendEmail(this)">📧 Verstuur per Email</button>
|
||||||
<button type="button" class="btn btn-danger" onclick="clearForm()">🗑️ Formulier Wissen</button>
|
<button type="button" class="btn btn-danger" onclick="clearForm()">🗑️ Formulier Wissen</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -980,50 +980,67 @@ input.invalid, select.invalid, textarea.invalid {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Send email
|
// Send email
|
||||||
window.sendEmail = function() {
|
window.sendEmail = function(btn) {
|
||||||
if (!validateAll()) {
|
if (!validateAll()) {
|
||||||
showToast('Vul eerst alle verplichte velden in', 'error');
|
showToast('Vul eerst alle verplichte velden in', 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const data = getFormData();
|
// Show loading state immediately
|
||||||
|
const button = btn || document.querySelector('[onclick*="sendEmail"]');
|
||||||
// Build subject
|
const originalText = button ? button.innerHTML : '';
|
||||||
let subject = CONFIG.export.mailto.subject_prefix;
|
if (button) {
|
||||||
if (CONFIG.export.mailto.include_timestamp) {
|
button.innerHTML = '⏳ Email voorbereiden...';
|
||||||
subject += ' - ' + formatDateTime(new Date());
|
button.disabled = true;
|
||||||
}
|
}
|
||||||
CONFIG.export.mailto.subject_fields.forEach(fieldId => {
|
|
||||||
if (data[fieldId]) {
|
// Use setTimeout to allow UI to update before heavy processing
|
||||||
subject += ' - ' + data[fieldId];
|
setTimeout(function() {
|
||||||
|
const data = getFormData();
|
||||||
|
|
||||||
|
// Build subject
|
||||||
|
let subject = CONFIG.export.mailto.subject_prefix;
|
||||||
|
if (CONFIG.export.mailto.include_timestamp) {
|
||||||
|
subject += ' - ' + formatDateTime(new Date());
|
||||||
}
|
}
|
||||||
});
|
CONFIG.export.mailto.subject_fields.forEach(fieldId => {
|
||||||
|
if (data[fieldId]) {
|
||||||
|
subject += ' - ' + data[fieldId];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// Build body
|
// Build body
|
||||||
let body = 'INVENTARISATIE GEGEVENS\n';
|
let body = 'INVENTARISATIE GEGEVENS\n';
|
||||||
body += '========================\n\n';
|
body += '========================\n\n';
|
||||||
body += 'Formulier: ' + CONFIG.name + '\n';
|
body += 'Formulier: ' + CONFIG.name + '\n';
|
||||||
body += 'Versie: ' + CONFIG.version + '\n';
|
body += 'Versie: ' + CONFIG.version + '\n';
|
||||||
body += 'Datum: ' + formatDateTime(new Date()) + '\n\n';
|
body += 'Datum: ' + formatDateTime(new Date()) + '\n\n';
|
||||||
|
|
||||||
Object.entries(data).forEach(([key, value]) => {
|
Object.entries(data).forEach(([key, value]) => {
|
||||||
if (value && value !== '' && !key.includes('foto') && !key.includes('photo')) {
|
if (value && value !== '' && !key.includes('foto') && !key.includes('photo')) {
|
||||||
const label = document.querySelector(`label[for="${key}"]`);
|
const label = document.querySelector(`label[for="${key}"]`);
|
||||||
const labelText = label ? label.textContent.replace('*', '').trim() : key;
|
const labelText = label ? label.textContent.replace('*', '').trim() : key;
|
||||||
const displayValue = Array.isArray(value) ? value.join(', ') : value;
|
const displayValue = Array.isArray(value) ? value.join(', ') : value;
|
||||||
body += labelText + ': ' + displayValue + '\n';
|
body += labelText + ': ' + displayValue + '\n';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
body += '\n========================\n';
|
||||||
|
body += 'Let op: Foto\'s kunnen niet via mailto worden verzonden.\n';
|
||||||
|
body += 'Gebruik CSV export voor complete data inclusief foto\'s.';
|
||||||
|
|
||||||
|
const mailto = 'mailto:' + encodeURIComponent(CONFIG.export.mailto.to) +
|
||||||
|
'?subject=' + encodeURIComponent(subject) +
|
||||||
|
'&body=' + encodeURIComponent(body);
|
||||||
|
|
||||||
|
// Restore button state
|
||||||
|
if (button) {
|
||||||
|
button.innerHTML = originalText;
|
||||||
|
button.disabled = false;
|
||||||
}
|
}
|
||||||
});
|
|
||||||
|
|
||||||
body += '\n========================\n';
|
window.location.href = mailto;
|
||||||
body += 'Let op: Foto\'s kunnen niet via mailto worden verzonden.\n';
|
}, 50);
|
||||||
body += 'Gebruik CSV export voor complete data inclusief foto\'s.';
|
|
||||||
|
|
||||||
const mailto = 'mailto:' + encodeURIComponent(CONFIG.export.mailto.to) +
|
|
||||||
'?subject=' + encodeURIComponent(subject) +
|
|
||||||
'&body=' + encodeURIComponent(body);
|
|
||||||
|
|
||||||
window.location.href = mailto;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Clear form
|
// Clear form
|
||||||
|
|||||||
@@ -643,7 +643,7 @@ select {
|
|||||||
|
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
<button type="button" class="btn btn-primary" onclick="exportCSV()">📥 Exporteer CSV</button>
|
<button type="button" class="btn btn-primary" onclick="exportCSV()">📥 Exporteer CSV</button>
|
||||||
<button type="button" class="btn btn-success" onclick="sendEmail()">📧 Verstuur per Email</button>
|
<button type="button" class="btn btn-success" onclick="sendEmail(this)">📧 Verstuur per Email</button>
|
||||||
<button type="button" class="btn btn-danger" onclick="clearForm()">🗑️ Formulier Wissen</button>
|
<button type="button" class="btn btn-danger" onclick="clearForm()">🗑️ Formulier Wissen</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1011,50 +1011,67 @@ select {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Send email
|
// Send email
|
||||||
window.sendEmail = function() {
|
window.sendEmail = function(btn) {
|
||||||
if (!validateAll()) {
|
if (!validateAll()) {
|
||||||
showToast('Vul eerst alle verplichte velden in', 'error');
|
showToast('Vul eerst alle verplichte velden in', 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const data = getFormData();
|
// Show loading state immediately
|
||||||
|
const button = btn || document.querySelector('[onclick*="sendEmail"]');
|
||||||
// Build subject
|
const originalText = button ? button.innerHTML : '';
|
||||||
let subject = CONFIG.export.mailto.subject_prefix;
|
if (button) {
|
||||||
if (CONFIG.export.mailto.include_timestamp) {
|
button.innerHTML = '⏳ Email voorbereiden...';
|
||||||
subject += ' - ' + formatDateTime(new Date());
|
button.disabled = true;
|
||||||
}
|
}
|
||||||
CONFIG.export.mailto.subject_fields.forEach(fieldId => {
|
|
||||||
if (data[fieldId]) {
|
// Use setTimeout to allow UI to update before heavy processing
|
||||||
subject += ' - ' + data[fieldId];
|
setTimeout(function() {
|
||||||
|
const data = getFormData();
|
||||||
|
|
||||||
|
// Build subject
|
||||||
|
let subject = CONFIG.export.mailto.subject_prefix;
|
||||||
|
if (CONFIG.export.mailto.include_timestamp) {
|
||||||
|
subject += ' - ' + formatDateTime(new Date());
|
||||||
}
|
}
|
||||||
});
|
CONFIG.export.mailto.subject_fields.forEach(fieldId => {
|
||||||
|
if (data[fieldId]) {
|
||||||
|
subject += ' - ' + data[fieldId];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// Build body
|
// Build body
|
||||||
let body = 'INVENTARISATIE GEGEVENS\n';
|
let body = 'INVENTARISATIE GEGEVENS\n';
|
||||||
body += '========================\n\n';
|
body += '========================\n\n';
|
||||||
body += 'Formulier: ' + CONFIG.name + '\n';
|
body += 'Formulier: ' + CONFIG.name + '\n';
|
||||||
body += 'Versie: ' + CONFIG.version + '\n';
|
body += 'Versie: ' + CONFIG.version + '\n';
|
||||||
body += 'Datum: ' + formatDateTime(new Date()) + '\n\n';
|
body += 'Datum: ' + formatDateTime(new Date()) + '\n\n';
|
||||||
|
|
||||||
Object.entries(data).forEach(([key, value]) => {
|
Object.entries(data).forEach(([key, value]) => {
|
||||||
if (value && value !== '' && !key.includes('foto') && !key.includes('photo')) {
|
if (value && value !== '' && !key.includes('foto') && !key.includes('photo')) {
|
||||||
const label = document.querySelector(`label[for="${key}"]`);
|
const label = document.querySelector(`label[for="${key}"]`);
|
||||||
const labelText = label ? label.textContent.replace('*', '').trim() : key;
|
const labelText = label ? label.textContent.replace('*', '').trim() : key;
|
||||||
const displayValue = Array.isArray(value) ? value.join(', ') : value;
|
const displayValue = Array.isArray(value) ? value.join(', ') : value;
|
||||||
body += labelText + ': ' + displayValue + '\n';
|
body += labelText + ': ' + displayValue + '\n';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
body += '\n========================\n';
|
||||||
|
body += 'Let op: Foto\'s kunnen niet via mailto worden verzonden.\n';
|
||||||
|
body += 'Gebruik CSV export voor complete data inclusief foto\'s.';
|
||||||
|
|
||||||
|
const mailto = 'mailto:' + encodeURIComponent(CONFIG.export.mailto.to) +
|
||||||
|
'?subject=' + encodeURIComponent(subject) +
|
||||||
|
'&body=' + encodeURIComponent(body);
|
||||||
|
|
||||||
|
// Restore button state
|
||||||
|
if (button) {
|
||||||
|
button.innerHTML = originalText;
|
||||||
|
button.disabled = false;
|
||||||
}
|
}
|
||||||
});
|
|
||||||
|
|
||||||
body += '\n========================\n';
|
window.location.href = mailto;
|
||||||
body += 'Let op: Foto\'s kunnen niet via mailto worden verzonden.\n';
|
}, 50);
|
||||||
body += 'Gebruik CSV export voor complete data inclusief foto\'s.';
|
|
||||||
|
|
||||||
const mailto = 'mailto:' + encodeURIComponent(CONFIG.export.mailto.to) +
|
|
||||||
'?subject=' + encodeURIComponent(subject) +
|
|
||||||
'&body=' + encodeURIComponent(body);
|
|
||||||
|
|
||||||
window.location.href = mailto;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Clear form
|
// Clear form
|
||||||
|
|||||||
@@ -674,7 +674,7 @@ input.invalid, select.invalid, textarea.invalid {
|
|||||||
|
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
<button type="button" class="btn btn-primary" onclick="exportCSV()">📥 Exporteer CSV</button>
|
<button type="button" class="btn btn-primary" onclick="exportCSV()">📥 Exporteer CSV</button>
|
||||||
<button type="button" class="btn btn-success" onclick="sendEmail()">📧 Verstuur per Email</button>
|
<button type="button" class="btn btn-success" onclick="sendEmail(this)">📧 Verstuur per Email</button>
|
||||||
<button type="button" class="btn btn-danger" onclick="clearForm()">🗑️ Formulier Wissen</button>
|
<button type="button" class="btn btn-danger" onclick="clearForm()">🗑️ Formulier Wissen</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1042,50 +1042,67 @@ input.invalid, select.invalid, textarea.invalid {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Send email
|
// Send email
|
||||||
window.sendEmail = function() {
|
window.sendEmail = function(btn) {
|
||||||
if (!validateAll()) {
|
if (!validateAll()) {
|
||||||
showToast('Vul eerst alle verplichte velden in', 'error');
|
showToast('Vul eerst alle verplichte velden in', 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const data = getFormData();
|
// Show loading state immediately
|
||||||
|
const button = btn || document.querySelector('[onclick*="sendEmail"]');
|
||||||
// Build subject
|
const originalText = button ? button.innerHTML : '';
|
||||||
let subject = CONFIG.export.mailto.subject_prefix;
|
if (button) {
|
||||||
if (CONFIG.export.mailto.include_timestamp) {
|
button.innerHTML = '⏳ Email voorbereiden...';
|
||||||
subject += ' - ' + formatDateTime(new Date());
|
button.disabled = true;
|
||||||
}
|
}
|
||||||
CONFIG.export.mailto.subject_fields.forEach(fieldId => {
|
|
||||||
if (data[fieldId]) {
|
// Use setTimeout to allow UI to update before heavy processing
|
||||||
subject += ' - ' + data[fieldId];
|
setTimeout(function() {
|
||||||
|
const data = getFormData();
|
||||||
|
|
||||||
|
// Build subject
|
||||||
|
let subject = CONFIG.export.mailto.subject_prefix;
|
||||||
|
if (CONFIG.export.mailto.include_timestamp) {
|
||||||
|
subject += ' - ' + formatDateTime(new Date());
|
||||||
}
|
}
|
||||||
});
|
CONFIG.export.mailto.subject_fields.forEach(fieldId => {
|
||||||
|
if (data[fieldId]) {
|
||||||
|
subject += ' - ' + data[fieldId];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// Build body
|
// Build body
|
||||||
let body = 'INVENTARISATIE GEGEVENS\n';
|
let body = 'INVENTARISATIE GEGEVENS\n';
|
||||||
body += '========================\n\n';
|
body += '========================\n\n';
|
||||||
body += 'Formulier: ' + CONFIG.name + '\n';
|
body += 'Formulier: ' + CONFIG.name + '\n';
|
||||||
body += 'Versie: ' + CONFIG.version + '\n';
|
body += 'Versie: ' + CONFIG.version + '\n';
|
||||||
body += 'Datum: ' + formatDateTime(new Date()) + '\n\n';
|
body += 'Datum: ' + formatDateTime(new Date()) + '\n\n';
|
||||||
|
|
||||||
Object.entries(data).forEach(([key, value]) => {
|
Object.entries(data).forEach(([key, value]) => {
|
||||||
if (value && value !== '' && !key.includes('foto') && !key.includes('photo')) {
|
if (value && value !== '' && !key.includes('foto') && !key.includes('photo')) {
|
||||||
const label = document.querySelector(`label[for="${key}"]`);
|
const label = document.querySelector(`label[for="${key}"]`);
|
||||||
const labelText = label ? label.textContent.replace('*', '').trim() : key;
|
const labelText = label ? label.textContent.replace('*', '').trim() : key;
|
||||||
const displayValue = Array.isArray(value) ? value.join(', ') : value;
|
const displayValue = Array.isArray(value) ? value.join(', ') : value;
|
||||||
body += labelText + ': ' + displayValue + '\n';
|
body += labelText + ': ' + displayValue + '\n';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
body += '\n========================\n';
|
||||||
|
body += 'Let op: Foto\'s kunnen niet via mailto worden verzonden.\n';
|
||||||
|
body += 'Gebruik CSV export voor complete data inclusief foto\'s.';
|
||||||
|
|
||||||
|
const mailto = 'mailto:' + encodeURIComponent(CONFIG.export.mailto.to) +
|
||||||
|
'?subject=' + encodeURIComponent(subject) +
|
||||||
|
'&body=' + encodeURIComponent(body);
|
||||||
|
|
||||||
|
// Restore button state
|
||||||
|
if (button) {
|
||||||
|
button.innerHTML = originalText;
|
||||||
|
button.disabled = false;
|
||||||
}
|
}
|
||||||
});
|
|
||||||
|
|
||||||
body += '\n========================\n';
|
window.location.href = mailto;
|
||||||
body += 'Let op: Foto\'s kunnen niet via mailto worden verzonden.\n';
|
}, 50);
|
||||||
body += 'Gebruik CSV export voor complete data inclusief foto\'s.';
|
|
||||||
|
|
||||||
const mailto = 'mailto:' + encodeURIComponent(CONFIG.export.mailto.to) +
|
|
||||||
'?subject=' + encodeURIComponent(subject) +
|
|
||||||
'&body=' + encodeURIComponent(body);
|
|
||||||
|
|
||||||
window.location.href = mailto;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Clear form
|
// Clear form
|
||||||
|
|||||||
+1
-1
@@ -153,7 +153,7 @@ def generate_html(config: InventoryConfig) -> str:
|
|||||||
if config.export.csv.enabled:
|
if config.export.csv.enabled:
|
||||||
actions_html += ' <button type="button" class="btn btn-primary" onclick="exportCSV()">📥 Exporteer CSV</button>\n'
|
actions_html += ' <button type="button" class="btn btn-primary" onclick="exportCSV()">📥 Exporteer CSV</button>\n'
|
||||||
if config.export.mailto.enabled:
|
if config.export.mailto.enabled:
|
||||||
actions_html += ' <button type="button" class="btn btn-success" onclick="sendEmail()">📧 Verstuur per Email</button>\n'
|
actions_html += ' <button type="button" class="btn btn-success" onclick="sendEmail(this)">📧 Verstuur per Email</button>\n'
|
||||||
actions_html += ' <button type="button" class="btn btn-danger" onclick="clearForm()">🗑️ Formulier Wissen</button>\n'
|
actions_html += ' <button type="button" class="btn btn-danger" onclick="clearForm()">🗑️ Formulier Wissen</button>\n'
|
||||||
actions_html += '</div>\n'
|
actions_html += '</div>\n'
|
||||||
|
|
||||||
|
|||||||
+50
-33
@@ -1291,50 +1291,67 @@ JAVASCRIPT = """
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Send email
|
// Send email
|
||||||
window.sendEmail = function() {
|
window.sendEmail = function(btn) {
|
||||||
if (!validateAll()) {
|
if (!validateAll()) {
|
||||||
showToast('Vul eerst alle verplichte velden in', 'error');
|
showToast('Vul eerst alle verplichte velden in', 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const data = getFormData();
|
// Show loading state immediately
|
||||||
|
const button = btn || document.querySelector('[onclick*="sendEmail"]');
|
||||||
// Build subject
|
const originalText = button ? button.innerHTML : '';
|
||||||
let subject = CONFIG.export.mailto.subject_prefix;
|
if (button) {
|
||||||
if (CONFIG.export.mailto.include_timestamp) {
|
button.innerHTML = '⏳ Email voorbereiden...';
|
||||||
subject += ' - ' + formatDateTime(new Date());
|
button.disabled = true;
|
||||||
}
|
}
|
||||||
CONFIG.export.mailto.subject_fields.forEach(fieldId => {
|
|
||||||
if (data[fieldId]) {
|
// Use setTimeout to allow UI to update before heavy processing
|
||||||
subject += ' - ' + data[fieldId];
|
setTimeout(function() {
|
||||||
|
const data = getFormData();
|
||||||
|
|
||||||
|
// Build subject
|
||||||
|
let subject = CONFIG.export.mailto.subject_prefix;
|
||||||
|
if (CONFIG.export.mailto.include_timestamp) {
|
||||||
|
subject += ' - ' + formatDateTime(new Date());
|
||||||
}
|
}
|
||||||
});
|
CONFIG.export.mailto.subject_fields.forEach(fieldId => {
|
||||||
|
if (data[fieldId]) {
|
||||||
|
subject += ' - ' + data[fieldId];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// Build body
|
// Build body
|
||||||
let body = 'INVENTARISATIE GEGEVENS\\n';
|
let body = 'INVENTARISATIE GEGEVENS\\n';
|
||||||
body += '========================\\n\\n';
|
body += '========================\\n\\n';
|
||||||
body += 'Formulier: ' + CONFIG.name + '\\n';
|
body += 'Formulier: ' + CONFIG.name + '\\n';
|
||||||
body += 'Versie: ' + CONFIG.version + '\\n';
|
body += 'Versie: ' + CONFIG.version + '\\n';
|
||||||
body += 'Datum: ' + formatDateTime(new Date()) + '\\n\\n';
|
body += 'Datum: ' + formatDateTime(new Date()) + '\\n\\n';
|
||||||
|
|
||||||
Object.entries(data).forEach(([key, value]) => {
|
Object.entries(data).forEach(([key, value]) => {
|
||||||
if (value && value !== '' && !key.includes('foto') && !key.includes('photo')) {
|
if (value && value !== '' && !key.includes('foto') && !key.includes('photo')) {
|
||||||
const label = document.querySelector(`label[for="${key}"]`);
|
const label = document.querySelector(`label[for="${key}"]`);
|
||||||
const labelText = label ? label.textContent.replace('*', '').trim() : key;
|
const labelText = label ? label.textContent.replace('*', '').trim() : key;
|
||||||
const displayValue = Array.isArray(value) ? value.join(', ') : value;
|
const displayValue = Array.isArray(value) ? value.join(', ') : value;
|
||||||
body += labelText + ': ' + displayValue + '\\n';
|
body += labelText + ': ' + displayValue + '\\n';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
body += '\\n========================\\n';
|
||||||
|
body += 'Let op: Foto\\'s kunnen niet via mailto worden verzonden.\\n';
|
||||||
|
body += 'Gebruik CSV export voor complete data inclusief foto\\'s.';
|
||||||
|
|
||||||
|
const mailto = 'mailto:' + encodeURIComponent(CONFIG.export.mailto.to) +
|
||||||
|
'?subject=' + encodeURIComponent(subject) +
|
||||||
|
'&body=' + encodeURIComponent(body);
|
||||||
|
|
||||||
|
// Restore button state
|
||||||
|
if (button) {
|
||||||
|
button.innerHTML = originalText;
|
||||||
|
button.disabled = false;
|
||||||
}
|
}
|
||||||
});
|
|
||||||
|
|
||||||
body += '\\n========================\\n';
|
window.location.href = mailto;
|
||||||
body += 'Let op: Foto\\'s kunnen niet via mailto worden verzonden.\\n';
|
}, 50);
|
||||||
body += 'Gebruik CSV export voor complete data inclusief foto\\'s.';
|
|
||||||
|
|
||||||
const mailto = 'mailto:' + encodeURIComponent(CONFIG.export.mailto.to) +
|
|
||||||
'?subject=' + encodeURIComponent(subject) +
|
|
||||||
'&body=' + encodeURIComponent(body);
|
|
||||||
|
|
||||||
window.location.href = mailto;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Clear form
|
// Clear form
|
||||||
|
|||||||
Reference in new issue
Block a user