Source
const exclude = ['action', 'filter_src', 'filter_show_counter', 'filter_custom_time', 'filter_name'];
<?php declare(strict_types = 0);
/*
** Zabbix
** Copyright (C) 2001-2025 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
/**
* @var CView $this
*/
?>
<script>
const view = {
refresh_url: null,
refresh_data: null,
refresh_simple_url: null,
refresh_interval: null,
refresh_counters: null,
running: false,
timeout: null,
_refresh_message_box: null,
_popup_message_box: null,
active_filter: null,
layout_mode: null,
init({refresh_url, refresh_data, refresh_interval, filter_options, layout_mode}) {
this.refresh_url = new Curl(refresh_url, false);
this.refresh_data = refresh_data;
this.refresh_interval = refresh_interval;
this.layout_mode = layout_mode;
const url = new Curl('zabbix.php', false);
url.setArgument('action', 'latest.view.refresh');
this.refresh_simple_url = url.getUrl();
this.initTabFilter(filter_options);
this.initExpandableSubfilter();
if (this.refresh_interval != 0) {
this.running = true;
this.scheduleRefresh();
}
},
initTabFilter(filter_options) {
const filter = document.getElementById('monitoring_latest_filter');