Call Center Active: Action bar and list view updates.

This commit is contained in:
Nate
2020-01-13 09:45:21 -07:00
parent d10cfc3252
commit 8c54adb5c4
2 changed files with 151 additions and 137 deletions
+15 -3
View File
@@ -51,8 +51,8 @@
unset($_SESSION['agents']);
//get the header
require_once "resources/header.php";
$document['title'] = $text['title-call_center_queue_activity'];
require_once "resources/header.php";
//add the ajax
?><script type="text/javascript">
@@ -88,6 +88,18 @@
if (this.xmlHttp.readyState == 4 && (this.xmlHttp.status == 200 || !/^http/.test(window.location.href)))
//this.el.innerHTML = this.xmlHttp.responseText;
document.getElementById('ajax_response').innerHTML = this.xmlHttp.responseText;
//link table rows (except the last - the list_control_icons cell) on a table with a class of 'tr_hover', according to the href attribute of the <tr> tag
$('.tr_hover tr,.list tr').each(function(i,e) {
$(e).children('td:not(.list_control_icon,.list_control_icons,.tr_link_void,.list-row > .no-link,.list-row > .checkbox,.list-row > .button,.list-row > .action-button)').on('click', function() {
var href = $(this).closest('tr').attr('href');
var target = $(this).closest('tr').attr('target');
if (href) {
if (target) { window.open(href, target); }
else { window.location = href; }
}
});
});
}
var requestTime = function() {
@@ -123,10 +135,10 @@
<?php
//show the response
echo " <div id='ajax_response'></div>\n";
echo "<div id='ajax_response'></div>\n";
echo "<br><br>";
//include the footer
require_once "resources/footer.php";
?>
?>