Browse Source

#326 Show user agent info on admin_ticket

merge-requests/2/head
Mike Koch 6 years ago
parent
commit
9156e98169
  1. 8
      admin/admin_ticket.php
  2. 1
      language/en/text.php

8
admin/admin_ticket.php

@ -697,10 +697,6 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
?>
<script>
var userAgent = platform.parse('<?php echo addslashes($ticket['user_agent']); ?>');
var fontIcon = '';
if (userAgent.os == 'OS X') {
fontIcon = 'fa fa-apple';
}
</script>
<div class="row" style="padding: 20px">
<div class="col-md-2">
@ -891,7 +887,9 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
}
if (isset($ticket['user_agent']) && $ticket['user_agent'] !== NULL)
{
$tooltipText = $hesklang['ticket_submitted_using'];
echo '<i class="fa fa-desktop" id="user-agent"></i>';
echo '<script>$("#user-agent").tooltip({ title: \''.$tooltipText.'\' + userAgent })</script>';
}
if ($modsForHesk_settings['request_location'])
{

1
language/en/text.php

@ -23,6 +23,7 @@ $hesklang['EMAIL_HR']='------ Reply above this line ------';
// ADDED OR MODIFIED IN Mods for HESK 2.5.0
$hesklang['ticket_message_no_attachments'] = 'Ticket/Reply message, however attachments will not be included in the email';
$hesklang['ticket_submitted_using'] = 'Ticket submitted using: ';
// ADDED OR MODIFIED IN Mods for HESK 2.4.0
$hesklang['sort_by_user_defined_order'] = 'Sort by user-defined order';

Loading…
Cancel
Save