summaryrefslogtreecommitdiffstats
path: root/settings/js/admin.js
diff options
context:
space:
mode:
Diffstat (limited to 'settings/js/admin.js')
-rw-r--r--settings/js/admin.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/settings/js/admin.js b/settings/js/admin.js
index cfb1cb788d0..c04c0505deb 100644
--- a/settings/js/admin.js
+++ b/settings/js/admin.js
@@ -62,10 +62,18 @@ $(document).ready(function(){
});
$('#mail_settings').change(function(){
- OC.msg.startSaving('#mail_settings .msg');
+ OC.msg.startSaving('#mail_settings_msg');
var post = $( "#mail_settings" ).serialize();
$.post(OC.generateUrl('/settings/admin/mailsettings'), post, function(data){
OC.msg.finishedSaving('#mail_settings .msg', data);
});
});
+
+ $('#sendtestemail').click(function(){
+ OC.msg.startAction('#sendtestmail_msg', t('settings', 'Sending...'));
+ var post = $( "#sendtestemail" ).serialize();
+ $.post(OC.generateUrl('/settings/admin/mailtest'), post, function(data){
+ OC.msg.finishedAction('#sendtestmail_msg', data);
+ });
+ });
});