#7950 Fixed last_contact 2
This commit is contained in:
parent
5bf70f876c
commit
24670da399
|
@ -19,11 +19,12 @@ check_login();
|
|||
?>
|
||||
<script type="text/javascript">
|
||||
|
||||
function get_last_contact(source) {
|
||||
function get_last_contact(source, agent_id) {
|
||||
var params = {};
|
||||
params["get_last_contact"] = 1;
|
||||
params["page"] = "enterprise/include/ajax/log_viewer.ajax";
|
||||
params["source"] = source;
|
||||
params["agent_id"] = agent_id;
|
||||
|
||||
jQuery.ajax ({
|
||||
data: params,
|
||||
|
@ -75,7 +76,7 @@ foreach ($logs as $log) {
|
|||
'border' => '0',
|
||||
'width' => '20px',
|
||||
'heigth' => '20px',
|
||||
'onload' => "get_last_contact('".$log['source']."')",
|
||||
'onload' => "get_last_contact('".$log['source']."', '".$agent_id."')",
|
||||
]
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue