diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-06-25 15:32:40 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-06-25 15:32:40 +0200 |
commit | 6e2aaaaa31afc31b0ed216ded52b3b0ab9eb61ad (patch) | |
tree | a769b415d0a2b350ffd1058d805a0e3742f14955 /settings/js | |
parent | b1116880f861cf5b72d45a9edfabfdd7d48a9887 (diff) | |
download | nextcloud-server-6e2aaaaa31afc31b0ed216ded52b3b0ab9eb61ad.tar.gz nextcloud-server-6e2aaaaa31afc31b0ed216ded52b3b0ab9eb61ad.zip |
Fix test mail behaviour
* ref #8854
* prevent default of "send test mail" button
* drop unused form serialization
* use display name of user for test mail
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/admin.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/settings/js/admin.js b/settings/js/admin.js index 7036f6dbf2a..a202feb4f65 100644 --- a/settings/js/admin.js +++ b/settings/js/admin.js @@ -123,10 +123,10 @@ $(document).ready(function(){ }); }); - $('#sendtestemail').click(function(){ + $('#sendtestemail').click(function(event){ + event.preventDefault(); OC.msg.startAction('#sendtestmail_msg', t('settings', 'Sending...')); - var post = $( "#sendtestemail" ).serialize(); - $.post(OC.generateUrl('/settings/admin/mailtest'), post, function(data){ + $.post(OC.generateUrl('/settings/admin/mailtest'), '', function(data){ OC.msg.finishedAction('#sendtestmail_msg', data); }); }); |