diff --git a/data/web/inc/ajax/qitem_details.php b/data/web/inc/ajax/qitem_details.php index 4a61232c..0ea89047 100644 --- a/data/web/inc/ajax/qitem_details.php +++ b/data/web/inc/ajax/qitem_details.php @@ -53,7 +53,7 @@ if (!empty($_GET['hash']) && ctype_alnum($_GET['hash'])) { addAddresses($recipientsList, $mail_parser, 'to'); addAddresses($recipientsList, $mail_parser, 'cc'); addAddresses($recipientsList, $mail_parser, 'bcc'); - $recipientsList[] = array('address' => $mailc['rcpt'], 'type' => 'SMTP'); + $recipientsList[] = array('address' => $mailc['rcpt'], 'type' => 'smtp'); $data['recipients'] = $recipientsList; } // Get from @@ -108,7 +108,7 @@ elseif (!empty($_GET['id']) && ctype_alnum($_GET['id'])) { addAddresses($recipientsList, $mail_parser, 'to'); addAddresses($recipientsList, $mail_parser, 'cc'); addAddresses($recipientsList, $mail_parser, 'bcc'); - $recipientsList[] = array('address' => $mailc['rcpt'], 'type' => 'SMTP'); + $recipientsList[] = array('address' => $mailc['rcpt'], 'type' => 'smtp'); $data['recipients'] = $recipientsList; } // Get from diff --git a/data/web/inc/ajax/transport_check.php b/data/web/inc/ajax/transport_check.php index 3526e81b..b249e555 100644 --- a/data/web/inc/ajax/transport_check.php +++ b/data/web/inc/ajax/transport_check.php @@ -1,6 +1,9 @@ '); - elem.text(value.address + (value.type != 'to' ? (' (' + value.type.toUpperCase() + ')') : '')); + elem.text(value.address + ' (' + value.type.toUpperCase() + ')'); $('#qid_detail_recipients').append(elem); }); } diff --git a/data/web/js/site/quarantine.js b/data/web/js/site/quarantine.js index af871dec..a4606645 100644 --- a/data/web/js/site/quarantine.js +++ b/data/web/js/site/quarantine.js @@ -174,7 +174,7 @@ jQuery(function($){ if (typeof data.recipients !== 'undefined') { $.each(data.recipients, function(index, value) { var elem = $(''); - elem.text(value.address + (value.type != 'to' ? (' (' + value.type.toUpperCase() + ')') : '')); + elem.text(value.address + ' (' + value.type.toUpperCase() + ')'); $('#qid_detail_recipients').append(elem); }); }