Merge pull request #4465 from nextcloud/fix-test-mail
Don't send the test mail twice
This commit is contained in:
commit
f3fdc35dc2
|
@ -231,7 +231,6 @@ $(document).ready(function(){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: OC.generateUrl('/settings/admin/mailtest'),
|
url: OC.generateUrl('/settings/admin/mailtest'),
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
data: $('#mail_credentials_settings').serialize(),
|
|
||||||
success: function(){
|
success: function(){
|
||||||
OC.msg.finishedSuccess('#sendtestmail_msg', t('settings', 'Email sent'));
|
OC.msg.finishedSuccess('#sendtestmail_msg', t('settings', 'Email sent'));
|
||||||
},
|
},
|
||||||
|
@ -239,9 +238,6 @@ $(document).ready(function(){
|
||||||
OC.msg.finishedError('#sendtestmail_msg', xhr.responseJSON);
|
OC.msg.finishedError('#sendtestmail_msg', xhr.responseJSON);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$.post(OC.generateUrl('/settings/admin/mailtest'), '', function(data){
|
|
||||||
OC.msg.finishedAction('#sendtestmail_msg', data);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#allowGroupSharing').change(function() {
|
$('#allowGroupSharing').change(function() {
|
||||||
|
|
Loading…
Reference in New Issue