Source
const data = Object.assign({}, this.filter_defaults, this.global_timerange, url.getArgumentsObject());
<?php
/*
** 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_simple_url: null,
refresh_interval: null,
filter_defaults: null,
filter: null,
global_timerange: null,
active_filter: null,
refresh_timer: null,
filter_counter_fetch: null,
running: false,
timeout: null,
deferred: null,
init({filter_options, refresh_url, refresh_interval, filter_defaults}) {
this.refresh_url = new Curl(refresh_url, false);
this.refresh_interval = refresh_interval;
this.filter_defaults = filter_defaults;
const url = new Curl('zabbix.php', false);
url.setArgument('action', 'problem.view.refresh');
this.refresh_simple_url = url.getUrl();
this.initFilter(filter_options);
this.initAcknowledge();
if (this.refresh_interval != 0) {
this.running = true;
this.scheduleRefresh();
}
$(document).on({
mouseenter: function() {
if ($(this)[0].scrollWidth > $(this)[0].offsetWidth) {
$(this).attr({title: $(this).text()});
}