summaryrefslogtreecommitdiffstats
path: root/settings/js/admin.js
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-04-24 12:32:38 +0200
committerJoas Schilling <coding@schilljs.com>2017-04-24 12:50:29 +0200
commite93866332988251c8490fccc7f08d1fda50c3a33 (patch)
treeac0d1e20503accb9e273088ad09157d1e56b5fd0 /settings/js/admin.js
parent42e805f0578b95206fdddabfe6234b0880c27b1e (diff)
downloadnextcloud-server-e93866332988251c8490fccc7f08d1fda50c3a33.tar.gz
nextcloud-server-e93866332988251c8490fccc7f08d1fda50c3a33.zip
Don't send the test mail twice
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'settings/js/admin.js')
-rw-r--r--settings/js/admin.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/settings/js/admin.js b/settings/js/admin.js
index 475fecf604e..177f6d3f7f4 100644
--- a/settings/js/admin.js
+++ b/settings/js/admin.js
@@ -231,7 +231,6 @@ $(document).ready(function(){
$.ajax({
url: OC.generateUrl('/settings/admin/mailtest'),
type: 'POST',
- data: $('#mail_credentials_settings').serialize(),
success: function(){
OC.msg.finishedSuccess('#sendtestmail_msg', t('settings', 'Email sent'));
},
@@ -239,9 +238,6 @@ $(document).ready(function(){
OC.msg.finishedError('#sendtestmail_msg', xhr.responseJSON);
}
});
- $.post(OC.generateUrl('/settings/admin/mailtest'), '', function(data){
- OC.msg.finishedAction('#sendtestmail_msg', data);
- });
});
$('#allowGroupSharing').change(function() {