- md5
- 3cc2b5f0485c4392fbd5b8a660b6a10d
- sha1
- 09f49b60a6ddb8bdde2b1e8ee34cbd56d53f68e2
- sha256
- 4aa60088e10c03b1a376e6f1608e7b164427262f05a45e6291f393678d311c41
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
/**
* @package Joomla.JavaScript
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
/**
* Calls the sending process of the config class
*/
jQuery(document).ready(function ($)
{
$('#sendtestmail').click(function ()
{
var email_data = {
smtpauth : $('input[name="jform[smtpauth]"]').val(),
smtpuser : $('input[name="jform[smtpuser]"]').val(),
smtppass : $('input[name="jform[smtppass]"]').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()
};
$.ajax({
url: sendtestmail_url,
data: email_data
})
.done(function (response)
{
var data_response = $.parseJSON(response);
var msg = {};
if (data_response.data)
{
if (typeof data_response.messages == 'object')
{
if (typeof data_response.messages.success != 'undefined' && data_response.messages.success.length > 0)
{
msg.success = [data_response.messages.success];
}
}
}
else
{
if (typeof data_response.messages == 'object')
{
if (typeof data_response.messages.error != 'undefined' && data_response.messages.error.length > 0)
{
msg.error = [data_response.messages.error];
}
if (typeof data_response.messages.notice != 'undefined' && data_response.messages.notice.length > 0)
{
msg.notice = [data_response.messages.notice];
}
if (typeof data_response.messages.message != 'undefined' && data_response.messages.message.length > 0)
{
msg.message = [data_response.messages.message];
}
}
}
Joomla.renderMessages(msg);
});
window.scrollTo(0, 0);
});
});
No other release has this exact content. See every version of this file.