Fixed the refresh time in the enterprise dashboard. TICKET: #3156
This commit is contained in:
parent
ea11282439
commit
b94f47f3a9
|
@ -196,18 +196,7 @@ config_check();
|
||||||
}
|
}
|
||||||
|
|
||||||
$ignored_params['refr'] = '';
|
$ignored_params['refr'] = '';
|
||||||
$values = array (
|
$values = get_refresh_time_array();
|
||||||
'0' => __('Disable'),
|
|
||||||
'5' => __('5 seconds'),
|
|
||||||
'10' => __('10 seconds'),
|
|
||||||
'15' => __('15 seconds'),
|
|
||||||
'30' => __('30 seconds'),
|
|
||||||
(string)SECONDS_1MINUTE => __('1 minute'),
|
|
||||||
(string)SECONDS_2MINUTES => __('2 minutes'),
|
|
||||||
(string)SECONDS_5MINUTES => __('5 minutes'),
|
|
||||||
(string)SECONDS_15MINUTES => __('15 minutes'),
|
|
||||||
(string)SECONDS_30MINUTES => __('30 minutes'),
|
|
||||||
(string)SECONDS_1HOUR => __('1 hour'));
|
|
||||||
$autorefresh_additional = '<span id="combo_refr" style="display: none;">';
|
$autorefresh_additional = '<span id="combo_refr" style="display: none;">';
|
||||||
$autorefresh_additional .= html_print_select ($values, 'ref', '', '', __('Select'), '0', true, false, false);
|
$autorefresh_additional .= html_print_select ($values, 'ref', '', '', __('Select'), '0', true, false, false);
|
||||||
$autorefresh_additional .= '</span>';
|
$autorefresh_additional .= '</span>';
|
||||||
|
|
|
@ -2520,4 +2520,19 @@ if (!function_exists('hex2bin')) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function get_refresh_time_array() {
|
||||||
|
return array (
|
||||||
|
'0' => __('Disable'),
|
||||||
|
'5' => __('5 seconds'),
|
||||||
|
'10' => __('10 seconds'),
|
||||||
|
'15' => __('15 seconds'),
|
||||||
|
'30' => __('30 seconds'),
|
||||||
|
(string)SECONDS_1MINUTE => __('1 minute'),
|
||||||
|
(string)SECONDS_2MINUTES => __('2 minutes'),
|
||||||
|
(string)SECONDS_5MINUTES => __('5 minutes'),
|
||||||
|
(string)SECONDS_15MINUTES => __('15 minutes'),
|
||||||
|
(string)SECONDS_30MINUTES => __('30 minutes'),
|
||||||
|
(string)SECONDS_1HOUR => __('1 hour'));
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue