Source
this._previous_maps.push({sysmapid: this._sysmapid, parent_itemid: this._filter_itemid});
/*
** Zabbix
** Copyright (C) 2001-2022 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.
**/
const WIDGET_SYSMAP_SOURCETYPE_MAP = 1;
const WIDGET_SYSMAP_SOURCETYPE_FILTER = 2;
const WIDGET_SYSMAP_EVENT_SUBMAP_SELECT = 'widget-sysmap-submap-select';
class CWidgetMap extends CWidget {
_init() {
super._init();
this._map_svg = null;
this._source_type = this._fields.source_type || WIDGET_SYSMAP_SOURCETYPE_MAP;
this._filter_widget = null;
this._filter_itemid = null;
this._previous_maps = [];
this._sysmapid = null;
this._initial_load = true;
this._has_contents = false;
}
_doActivate() {
super._doActivate();
if (this._has_contents) {
this._activateContentsEvents();
}
}
_doDeactivate() {
super._doDeactivate();
if (this._has_contents) {
this._deactivateContentsEvents();
}
}
_doDestroy() {
super._doDestroy();
if (this._filter_widget) {