mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-14 17:56:16 +01:00
ability to edit and save custom email templates
This commit is contained in:
@@ -92,16 +92,6 @@ define('admin/settings', ['uploader', 'sounds'], function(uploader, sounds) {
|
||||
|
||||
handleUploads();
|
||||
|
||||
$('button[data-action="email.test"]').off('click').on('click', function() {
|
||||
socket.emit('admin.email.test', {template: $('#test-email').val()}, function(err) {
|
||||
if (err) {
|
||||
return app.alertError(err.message);
|
||||
}
|
||||
app.alertSuccess('Test Email Sent');
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
$('#clear-sitemap-cache').off('click').on('click', function() {
|
||||
socket.emit('admin.settings.clearSitemapCache', function() {
|
||||
app.alertSuccess('Sitemap Cache Cleared!');
|
||||
|
||||
Reference in New Issue
Block a user