Merge pull request #4465 from nextcloud/fix-test-mail

Don't send the test mail twice
This commit is contained in:
Morris Jobke 2017-04-24 10:49:29 -03:00 committed by GitHub
commit f3fdc35dc2
1 changed files with 0 additions and 4 deletions

View File

@ -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() {