Skip to content

Commit

Permalink
fix conflicts 1
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepereiradasilva committed Jun 15, 2016
1 parent a90a531 commit 086125a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 20 deletions.
41 changes: 22 additions & 19 deletions media/system/js/sendtestmail-uncompressed.js
Expand Up @@ -69,31 +69,34 @@ jQuery(document).ready(function ($)
.done(function (response) {
var msg = {};

if (typeof response.messages == 'object')
if (response.data)
{
if (response.data && typeof response.messages.success != 'undefined' && response.messages.success.length > 0)
if (typeof response.messages == 'object')
{
msg.success = [response.messages.success];
if (typeof response.messages.success != 'undefined' && response.messages.success.length > 0)
{
msg.message = [response.messages.success];
}
}

if (typeof response.messages.error != 'undefined' && response.messages.error.length > 0)
{
msg.error = [response.messages.error];
}

if (typeof response.messages.warning != 'undefined' && response.messages.warning.length > 0)
}
else
{
if (typeof response.messages == 'object')
{
msg.warning = [response.messages.warning];
}
if (typeof response.messages.error != 'undefined' && response.messages.error.length > 0)
{
msg.error = [response.messages.error];
}

if (typeof response.messages.notice != 'undefined' && response.messages.notice.length > 0)
{
msg.notice = [response.messages.notice];
}
if (typeof response.messages.notice != 'undefined' && response.messages.notice.length > 0)
{
msg.notice = [response.messages.notice];
}

if (typeof response.messages.message != 'undefined' && response.messages.message.length > 0)
{
msg.message = [response.messages.message];
if (typeof response.messages.message != 'undefined' && response.messages.message.length > 0)
{
msg.message = [response.messages.message];
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion media/system/js/sendtestmail.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 086125a

Please sign in to comment.