summaryrefslogtreecommitdiffstats
path: root/settings/js/admin.js
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-02-26 12:13:20 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-03-05 10:01:34 +0100
commit5b8cde48dc6d68a3921195b5367024b94abe14af (patch)
tree0675ce506a9f32ddda610afaf76d623c6dde5ce8 /settings/js/admin.js
parent2f0db9af07013655393ba199a1890fbf0e55ba0f (diff)
downloadnextcloud-server-5b8cde48dc6d68a3921195b5367024b94abe14af.tar.gz
nextcloud-server-5b8cde48dc6d68a3921195b5367024b94abe14af.zip
Add button to send a test mail after changing the email settings
Fix #7175
Diffstat (limited to 'settings/js/admin.js')
-rw-r--r--settings/js/admin.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/settings/js/admin.js b/settings/js/admin.js
index 5ea6a5af2df..684822f1834 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.Router.generate('settings_mail_settings'), post, function(data){
- OC.msg.finishedSaving('#mail_settings .msg', 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.Router.generate('settings_admin_mail_test'), post, function(data){
+ OC.msg.finishedAction('#sendtestmail_msg', data);
});
});
});