Add style css to image and fixed problems in metaconsole when grouped by agents in events. Internal ticket: #3079

This commit is contained in:
m-lopez-f 2016-09-01 10:50:34 +02:00
parent 392779d703
commit 02388ff31f
4 changed files with 12 additions and 6 deletions

View File

@ -2962,7 +2962,7 @@ function events_get_events_grouped_by_agent($sql_post, $offset = 0,
$table = events_get_events_table($meta, $history);
if ($meta) {
$fields_extra = ', agent_name';
$fields_extra = ', agent_name, server_id';
$groupby_extra = ', server_id';
}
else {
@ -3022,7 +3022,7 @@ function events_get_events_grouped_by_agent($sql_post, $offset = 0,
$id_agente = $event['agent_name'];
$result[] = array('total' => $event['total'],
'id_server' => $event['id_server'],
'id_server' => $event['server_id'],
'id_agent' => $id_agente,
'event_type' => $resultado['event_type']);
}

View File

@ -491,8 +491,9 @@ function event_comment() {
//Show event list when fielter repetead is Group agents
function show_events_group_agent (id_insert, id_agent, server_id) {
parameter = [];
var ajax_file = $('#hidden-ajax_file').val();
parameter = [];
parameter.push ({name: "id_agent",
value: id_agent});
parameter.push ({name: "server_id",
@ -522,7 +523,7 @@ function show_events_group_agent (id_insert, id_agent, server_id) {
parameter.push ({name: "date_to",
value: $("#text-date_to").val()});
parameter.push ({name: "server_id_search",
value: $("#text-date_to").val()});
value: $("#server_id").val()});
parameter.push ({
name: "page",
value: "include/ajax/events"});
@ -532,7 +533,7 @@ function show_events_group_agent (id_insert, id_agent, server_id) {
jQuery.ajax ({
type: 'POST',
url: 'ajax.php',
url: action=ajax_file,
data: parameter,
dataType: 'html',
success: function (data) {

View File

@ -3315,3 +3315,8 @@ div#vc-controls img.vc-qr {
display: none;
}
/* jQuery dialog */
/* Image open dialog in group events by agents*/
#open_agent_groups {
cursor: pointer;
}

View File

@ -93,7 +93,7 @@ if ($group_rep == 2) {
$uniq = uniqid();
if ($meta) {
$table->data[$key][2] = '<img id="open_agent_groups" src=images/zoom_mc.png data-id="'.$table->id.'-'.$uniq.'-0" data-open="false"
onclick=\'show_events_group_agent("'.$uniq.'",'.$res['id_agent'].','.$res['id_server'].');\' />';
onclick=\'show_events_group_agent("'.$table->id.'-'.$uniq.'-0","'.$res['id_agent'].'",'.$res['id_server'].');\' />';
}
else {
$table->data[$key][2] = '<img id="open_agent_groups" src="images/zoom_mc.png" data-id="'.$table->id.'-'.$uniq.'-0" data-open="false"