Source
* @param {object}|{string} form_name Form element in which input elements will be selected. If given value is 'null',
/*
** 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 KEY_ARROW_DOWN = 40;
const KEY_ARROW_LEFT = 37;
const KEY_ARROW_RIGHT = 39;
const KEY_ARROW_UP = 38;
const KEY_BACKSPACE = 8;
const KEY_DELETE = 46;
const KEY_ENTER = 13;
const KEY_ESCAPE = 27;
const KEY_TAB = 9;
const KEY_PAGE_UP = 33;
const KEY_PAGE_DOWN = 34;
const KEY_END = 35;
const KEY_HOME = 36;
const KEY_SPACE = 32;
/**
* jQuery based publish/subscribe handler.
*
* - $.subscribe(event_name, callback)
* - $.unsubscribe(event_name, callback)
* - $.publish(event_name, data_object)
*
*/
(function($) {
var pubsub = $({});
$.subscribe = function() {
pubsub.on.apply(pubsub, arguments);
};
$.unsubscribe = function() {
pubsub.off.apply(pubsub, arguments);
};
$.publish = function() {
pubsub.trigger.apply(pubsub, arguments);
};
}(jQuery));
var overlays_stack = new OverlayCollection();
function isset(key, obj) {
return (is_null(key) || is_null(obj)) ? false : (typeof(obj[key]) != 'undefined');