Source
overlay.$dialogue[0].addEventListener('dialogue.submit', this.#listeners.elementSuccess, {once: true});
<?php
/*
** 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 Affero General Public License as published by the Free Software Foundation, version 3.
**
** 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 Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
/**
* @var CView $this
*/
?>
<script>
const view = new class {
/**
* @type {Object}
*/
#dashboard;
/**
* @type {Object}
*/
#broadcast_requirements;
/**
* @type {Object}
*/
#dashboard_time_period;
/**
* @type {boolean}
*/
#clone;
/**
* @type {boolean}
*/
#is_busy = false;
/**
* @type {boolean}
*/
#is_busy_saving = false;
/**
* @type {boolean}
*/
#skip_time_selector_range_update = false;
init({
dashboard,
widget_defaults,
widget_last_type,
configuration_hash,