CoreFiles by mySites.guru
sendtestmail.js1 lines, 1,045 bytes, from Joomla_3.9.28-Stable-Full_Package.zip
Raw History Compare with 3.9.27
md5
506f753d7c597bc1c56ba83db24c2929
sha1
fdf8716cd5ef7f989b71468dbe2a0b6fda2982f1
sha256
df26f8ce8b07a8fd7ec8aa40fcf12818e6981face3a44e8dfe81fc9ec9d14bc3
var sendTestMail=function(){$=jQuery;var e={smtpauth:$('input[name="jform[smtpauth]"]:checked').val(),smtpuser:$('input[name="jform[smtpuser]"]').val(),smtphost:$('input[name="jform[smtphost]"]').val(),smtpsecure:$('select[name="jform[smtpsecure]"]').val(),smtpport:$('input[name="jform[smtpport]"]').val(),mailfrom:$('input[name="jform[mailfrom]"]').val(),fromname:$('input[name="jform[fromname]"]').val(),mailer:$('select[name="jform[mailer]"]').val(),mailonline:$('input[name="jform[mailonline]"]:checked').val()},a=$('input[name="jform[smtppass]"]');!1===a.is(":disabled")&&(e.smtppass=a.val()),Joomla.removeMessages(),$.ajax({method:"POST",url:document.getElementById("sendtestmail").getAttribute("data-ajaxuri"),data:e,dataType:"json"}).fail(function(e,a,s){Joomla.renderMessages(Joomla.ajaxErrorsMessages(e,a,s)),window.scrollTo(0,0)}).done(function(e){"object"==typeof e.messages&&null!==e.messages&&(Joomla.renderMessages(e.messages),window.scrollTo(0,0))})};jQuery(document).ready(function(e){e("#sendtestmail").click(sendTestMail)});

The same content is in 33 releases, Joomla 3.9.24-rc2 to 3.10.12. See them all, or every version of this file.