mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-14 17:56:16 +01:00
closes #2677
This commit is contained in:
@@ -86,14 +86,19 @@ define('admin/settings', ['uploader', 'sounds'], function(uploader, sounds) {
|
||||
|
||||
$('button[data-action="email.test"]').off('click').on('click', function() {
|
||||
socket.emit('admin.email.test', function(err) {
|
||||
app.alert({
|
||||
alert_id: 'test_email_sent',
|
||||
type: !err ? 'info' : 'danger',
|
||||
title: 'Test Email Sent',
|
||||
message: err ? err.message : '',
|
||||
timeout: 2500
|
||||
});
|
||||
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!');
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
if (typeof callback === 'function') {
|
||||
|
||||
Reference in New Issue
Block a user