Add not hidden parts of tactical view when this view have refresh. Tiquet: #2956

This commit is contained in:
m-lopez-f 2015-11-10 10:06:51 +01:00
parent 6e56072c82
commit efabeb887b
2 changed files with 7 additions and 2 deletions

View File

@ -29,6 +29,7 @@ if (! check_acl ($config["id_user"], 0, "AW")) {
} }
global $tiny; global $tiny;
global $hidden_toggle;
$servers = servers_get_info(); $servers = servers_get_info();
if ($servers === false) { if ($servers === false) {
@ -185,7 +186,7 @@ if ($tiny) {
unset($table->head[8]); unset($table->head[8]);
} }
if ($tiny) { if ($tiny) {
ui_toggle(html_print_table ($table,true), __('Tactical server information')); ui_toggle(html_print_table ($table,true), __('Tactical server information'),false,$hidden_toggle);
} }
else { else {
html_print_table ($table); html_print_table ($table);

View File

@ -35,6 +35,7 @@ $is_admin = check_acl ($config['id_user'], 0, "PM");
$user_strict = (bool) db_get_value('strict_acl', 'tusuario', 'id_user', $config['id_user']); $user_strict = (bool) db_get_value('strict_acl', 'tusuario', 'id_user', $config['id_user']);
$force_refresh = get_parameter ("force_refresh", ""); $force_refresh = get_parameter ("force_refresh", "");
$refresh = get_parameter ("refr", 0);
if ($force_refresh == 1) { if ($force_refresh == 1) {
db_process_sql ("UPDATE tgroup_stat SET utimestamp = 0"); db_process_sql ("UPDATE tgroup_stat SET utimestamp = 0");
} }
@ -223,6 +224,9 @@ echo '<td style="vertical-align: top; width: 75%; padding-top: 0px;" id="rightco
// --------------------------------------------------------------------- // ---------------------------------------------------------------------
// Last events information // Last events information
// --------------------------------------------------------------------- // ---------------------------------------------------------------------
$hidden_toggle = true;
if ($refresh > 0 )
$hidden_toggle = false;
$acltags = tags_get_user_module_and_tags ($config['id_user'], $access = 'ER', $user_strict); $acltags = tags_get_user_module_and_tags ($config['id_user'], $access = 'ER', $user_strict);
@ -231,7 +235,7 @@ if (!empty($acltags)) {
if (!empty($tags_condition)) { if (!empty($tags_condition)) {
$events = events_print_event_table ("estado<>1 AND ($tags_condition)", 10, "100%",true,false,true); $events = events_print_event_table ("estado<>1 AND ($tags_condition)", 10, "100%",true,false,true);
ui_toggle($events, __('Latest events')); ui_toggle($events, __('Latest events'),false,$hidden_toggle);
} }
} }