summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-10-15 21:21:45 +0200
committerLukas Reschke <lukas@owncloud.com>2014-10-15 21:21:45 +0200
commitf48c973876ebe6eab0d95fa2c3daa12355034e3e (patch)
tree345ae38fcfc7f51a56fce0e22fc2296b899becff /settings/js
parent63e05992189aeca96bd719b97f43158903e52586 (diff)
parentd3eebad59104355bb6e07c9f63a6fa868f5a2c4c (diff)
downloadnextcloud-server-f48c973876ebe6eab0d95fa2c3daa12355034e3e.tar.gz
nextcloud-server-f48c973876ebe6eab0d95fa2c3daa12355034e3e.zip
Merge pull request #11570 from owncloud/backport-11408-master
Backport 11408 master
Diffstat (limited to 'settings/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 d8cdae9d11b..09e8a1d6916 100644
--- a/settings/js/admin.js
+++ b/settings/js/admin.js
@@ -103,14 +103,22 @@ $(document).ready(function(){
}
});
- $('#mail_settings').change(function(){
+ $('#mail_general_settings').change(function(){
OC.msg.startSaving('#mail_settings_msg');
- var post = $( "#mail_settings" ).serialize();
+ var post = $( "#mail_general_settings" ).serialize();
$.post(OC.generateUrl('/settings/admin/mailsettings'), post, function(data){
OC.msg.finishedSaving('#mail_settings_msg', data);
});
});
+ $('#mail_credentials_settings_submit').click(function(){
+ OC.msg.startSaving('#mail_settings_msg');
+ var post = $( "#mail_credentials_settings" ).serialize();
+ $.post(OC.generateUrl('/settings/admin/mailsettings/credentials'), post, function(data){
+ OC.msg.finishedSaving('#mail_settings_msg', data);
+ });
+ });
+
$('#sendtestemail').click(function(event){
event.preventDefault();
OC.msg.startAction('#sendtestmail_msg', t('settings', 'Sending...'));