2019-04-09 15:53:22 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
// Pandora FMS - http://pandorafms.com
|
|
|
|
// ==================================================
|
|
|
|
// Copyright (c) 2005-2019 Artica Soluciones Tecnologicas
|
|
|
|
// Please see http://pandorafms.org for full contribution list
|
|
|
|
// 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 for version 2.
|
|
|
|
// 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.
|
|
|
|
global $config;
|
|
|
|
|
|
|
|
// Login check.
|
|
|
|
check_login();
|
|
|
|
|
|
|
|
require_once $config['homedir'].'/vendor/autoload.php';
|
|
|
|
require_once $config['homedir'].'/include/functions_visual_map.php';
|
|
|
|
|
2019-06-24 17:57:45 +02:00
|
|
|
ui_require_css_file('visual_maps');
|
|
|
|
|
2019-04-09 16:36:31 +02:00
|
|
|
// Query parameters.
|
|
|
|
$visualConsoleId = (int) get_parameter(!is_metaconsole() ? 'id' : 'id_visualmap');
|
2019-04-12 14:23:33 +02:00
|
|
|
// To hide the menus.
|
2019-04-09 16:36:31 +02:00
|
|
|
$pure = (bool) get_parameter('pure', $config['pure']);
|
2019-04-12 14:23:33 +02:00
|
|
|
// Refresh interval in seconds.
|
|
|
|
$refr = (int) get_parameter('refr', $config['vc_refr']);
|
2019-04-09 15:53:22 +02:00
|
|
|
|
2019-04-12 09:51:53 +02:00
|
|
|
// Load Visual Console.
|
|
|
|
use Models\VisualConsole\Container as VisualConsole;
|
|
|
|
$visualConsole = null;
|
|
|
|
try {
|
|
|
|
$visualConsole = VisualConsole::fromDB(['id' => $visualConsoleId]);
|
|
|
|
} catch (Throwable $e) {
|
2019-04-09 15:53:22 +02:00
|
|
|
db_pandora_audit(
|
|
|
|
'ACL Violation',
|
2019-04-12 09:51:53 +02:00
|
|
|
'Trying to access visual console without Id'
|
2019-04-09 15:53:22 +02:00
|
|
|
);
|
|
|
|
include 'general/noaccess.php';
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
|
2019-04-12 09:51:53 +02:00
|
|
|
$visualConsoleData = $visualConsole->toArray();
|
|
|
|
$groupId = $visualConsoleData['groupId'];
|
|
|
|
$visualConsoleName = $visualConsoleData['name'];
|
2019-04-09 15:53:22 +02:00
|
|
|
|
|
|
|
// ACL.
|
2019-04-09 16:36:31 +02:00
|
|
|
$aclRead = check_acl($config['id_user'], $groupId, 'VR');
|
|
|
|
$aclWrite = check_acl($config['id_user'], $groupId, 'VW');
|
|
|
|
$aclManage = check_acl($config['id_user'], $groupId, 'VM');
|
2019-04-09 15:53:22 +02:00
|
|
|
|
2019-04-09 16:36:31 +02:00
|
|
|
if (!$aclRead && !$aclWrite && !$aclManage) {
|
2019-04-09 15:53:22 +02:00
|
|
|
db_pandora_audit(
|
|
|
|
'ACL Violation',
|
|
|
|
'Trying to access visual console without group access'
|
|
|
|
);
|
|
|
|
include 'general/noaccess.php';
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Render map.
|
|
|
|
$options = [];
|
|
|
|
|
2019-04-09 16:36:31 +02:00
|
|
|
$options['consoles_list']['text'] = '<a href="index.php?sec=network&sec2=godmode/reporting/map_builder">'.html_print_image(
|
2019-04-09 15:53:22 +02:00
|
|
|
'images/visual_console.png',
|
|
|
|
true,
|
|
|
|
['title' => __('Visual consoles list')]
|
|
|
|
).'</a>';
|
|
|
|
|
2019-04-09 16:36:31 +02:00
|
|
|
if ($aclWrite || $aclManage) {
|
2019-04-12 13:22:13 +02:00
|
|
|
$action = get_parameterBetweenListValues(
|
|
|
|
is_metaconsole() ? 'action2' : 'action',
|
|
|
|
[
|
|
|
|
'new',
|
|
|
|
'save',
|
|
|
|
'edit',
|
|
|
|
'update',
|
|
|
|
'delete',
|
|
|
|
],
|
|
|
|
'edit'
|
|
|
|
);
|
|
|
|
|
|
|
|
$baseUrl = 'index.php?sec=network&sec2=godmode/reporting/visual_console_builder&action='.$action;
|
2019-04-09 15:53:22 +02:00
|
|
|
|
2019-04-09 16:36:31 +02:00
|
|
|
$hash = md5($config['dbpass'].$visualConsoleId.$config['id_user']);
|
2019-04-09 15:53:22 +02:00
|
|
|
|
|
|
|
$options['public_link']['text'] = '<a href="'.ui_get_full_url(
|
2019-07-08 17:51:01 +02:00
|
|
|
'operation/visual_console/public_console.php?hash='.$hash.'&id_layout='.$visualConsoleId.'&refr='.$refr.'&id_user='.$config['id_user']
|
2019-04-09 15:53:22 +02:00
|
|
|
).'" target="_blank">'.html_print_image(
|
|
|
|
'images/camera_mc.png',
|
|
|
|
true,
|
|
|
|
['title' => __('Show link to public Visual Console')]
|
|
|
|
).'</a>';
|
|
|
|
$options['public_link']['active'] = false;
|
|
|
|
|
2019-04-12 13:22:13 +02:00
|
|
|
$options['data']['text'] = '<a href="'.$baseUrl.'&tab=data&id_visual_console='.$visualConsoleId.'">'.html_print_image(
|
2019-04-09 15:53:22 +02:00
|
|
|
'images/op_reporting.png',
|
|
|
|
true,
|
|
|
|
['title' => __('Main data')]
|
|
|
|
).'</a>';
|
2019-04-12 13:22:13 +02:00
|
|
|
$options['list_elements']['text'] = '<a href="'.$baseUrl.'&tab=list_elements&id_visual_console='.$visualConsoleId.'">'.html_print_image(
|
2019-04-09 15:53:22 +02:00
|
|
|
'images/list.png',
|
|
|
|
true,
|
|
|
|
['title' => __('List elements')]
|
|
|
|
).'</a>';
|
|
|
|
|
|
|
|
if (enterprise_installed()) {
|
2019-04-12 13:22:13 +02:00
|
|
|
$options['wizard_services']['text'] = '<a href="'.$baseUrl.'&tab=wizard_services&id_visual_console='.$visualConsoleId.'">'.html_print_image(
|
2019-04-09 15:53:22 +02:00
|
|
|
'images/wand_services.png',
|
|
|
|
true,
|
|
|
|
['title' => __('Services wizard')]
|
|
|
|
).'</a>';
|
|
|
|
}
|
|
|
|
|
2019-04-12 13:22:13 +02:00
|
|
|
$options['wizard']['text'] = '<a href="'.$baseUrl.'&tab=wizard&id_visual_console='.$visualConsoleId.'">'.html_print_image(
|
2019-04-09 15:53:22 +02:00
|
|
|
'images/wand.png',
|
|
|
|
true,
|
|
|
|
['title' => __('Wizard')]
|
|
|
|
).'</a>';
|
2019-04-12 13:22:13 +02:00
|
|
|
$options['editor']['text'] = '<a href="'.$baseUrl.'&tab=editor&id_visual_console='.$visualConsoleId.'">'.html_print_image(
|
2019-04-09 15:53:22 +02:00
|
|
|
'images/builder.png',
|
|
|
|
true,
|
|
|
|
['title' => __('Builder')]
|
|
|
|
).'</a>';
|
|
|
|
}
|
|
|
|
|
2019-05-20 15:15:54 +02:00
|
|
|
$options['view']['text'] = '<a href="index.php?sec=network&sec2=operation/visual_console/render_view&id='.$visualConsoleId.'&refr='.$refr.'">'.html_print_image(
|
2019-04-12 14:23:33 +02:00
|
|
|
'images/operation.png',
|
|
|
|
true,
|
|
|
|
['title' => __('View')]
|
|
|
|
).'</a>';
|
2019-04-09 15:53:22 +02:00
|
|
|
$options['view']['active'] = true;
|
2019-04-09 16:36:31 +02:00
|
|
|
|
2019-04-09 15:53:22 +02:00
|
|
|
if (!is_metaconsole()) {
|
|
|
|
if (!$config['pure']) {
|
2019-04-29 12:09:40 +02:00
|
|
|
$options['pure']['text'] = '<a href="index.php?sec=network&sec2=operation/visual_console/render_view&id='.$visualConsoleId.'&pure=1&refr='.$refr.'">'.html_print_image(
|
2019-04-12 14:23:33 +02:00
|
|
|
'images/full_screen.png',
|
|
|
|
true,
|
|
|
|
['title' => __('Full screen mode')]
|
|
|
|
).'</a>';
|
2019-04-09 16:36:31 +02:00
|
|
|
ui_print_page_header(
|
|
|
|
$visualConsoleName,
|
|
|
|
'images/visual_console.png',
|
|
|
|
false,
|
|
|
|
'',
|
|
|
|
false,
|
|
|
|
$options
|
|
|
|
);
|
2019-04-09 15:53:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Set the hidden value for the javascript.
|
|
|
|
html_print_input_hidden('metaconsole', 0);
|
|
|
|
} else {
|
|
|
|
// Set the hidden value for the javascript.
|
|
|
|
html_print_input_hidden('metaconsole', 1);
|
|
|
|
}
|
|
|
|
|
2019-06-04 17:34:40 +02:00
|
|
|
if ($pure === false) {
|
|
|
|
echo '<div class="visual-console-edit-controls">';
|
|
|
|
echo '<span>'.__('Move and resize mode').'</span>';
|
|
|
|
echo '<span>';
|
|
|
|
echo html_print_checkbox_switch('edit-mode', 1, false, true);
|
|
|
|
echo '</span>';
|
|
|
|
echo '</div>';
|
2019-07-26 14:17:14 +02:00
|
|
|
echo '<div id ="edit-controls" class="visual-console-edit-controls" style="visibility:hidden">';
|
2019-07-25 17:58:37 +02:00
|
|
|
html_print_button(
|
|
|
|
'delete_item',
|
2019-07-30 11:20:03 +02:00
|
|
|
'button_delete',
|
2019-07-26 14:17:14 +02:00
|
|
|
true,
|
2019-07-25 17:58:37 +02:00
|
|
|
'',
|
|
|
|
'class="sub visual_editor_button_toolbox delete_item delete_min"',
|
|
|
|
false,
|
|
|
|
true
|
|
|
|
);
|
|
|
|
html_print_button(
|
|
|
|
'copy_item',
|
2019-07-30 11:20:03 +02:00
|
|
|
'button_copy',
|
2019-07-25 17:58:37 +02:00
|
|
|
true,
|
2019-07-30 11:20:03 +02:00
|
|
|
'',
|
2019-07-25 17:58:37 +02:00
|
|
|
'class="sub visual_editor_button_toolbox copy_item delete_min"',
|
|
|
|
false,
|
|
|
|
true
|
|
|
|
);
|
|
|
|
echo '</div>';
|
2019-06-04 17:34:40 +02:00
|
|
|
echo '<br />';
|
2019-07-25 17:58:37 +02:00
|
|
|
// sub visual_editor_button_toolbox delete_item delete_min
|
2019-06-04 17:34:40 +02:00
|
|
|
}
|
2019-06-04 17:21:54 +02:00
|
|
|
|
2019-04-12 09:51:53 +02:00
|
|
|
echo '<div id="visual-console-container"></div>';
|
2019-04-09 15:53:22 +02:00
|
|
|
|
2019-04-09 16:36:31 +02:00
|
|
|
if ($pure === true) {
|
|
|
|
// Floating menu - Start.
|
2019-04-09 15:53:22 +02:00
|
|
|
echo '<div id="vc-controls" style="z-index: 999">';
|
|
|
|
|
|
|
|
echo '<div id="menu_tab">';
|
2019-06-21 12:41:05 +02:00
|
|
|
echo '<ul class="mn white-box-content box-shadow flex-row">';
|
2019-04-09 15:53:22 +02:00
|
|
|
|
2019-04-09 16:36:31 +02:00
|
|
|
// Quit fullscreen.
|
2019-04-09 15:53:22 +02:00
|
|
|
echo '<li class="nomn">';
|
2019-05-20 15:15:54 +02:00
|
|
|
$urlNoFull = 'index.php?sec=network&sec2=operation/visual_console/render_view&id='.$visualConsoleId.'&refr='.$refr;
|
2019-04-12 12:44:45 +02:00
|
|
|
echo '<a class="vc-btn-no-fullscreen" href="'.$urlNoFull.'">';
|
2019-04-09 15:53:22 +02:00
|
|
|
echo html_print_image('images/normal_screen.png', true, ['title' => __('Back to normal mode')]);
|
|
|
|
echo '</a>';
|
|
|
|
echo '</li>';
|
|
|
|
|
2019-04-29 12:09:40 +02:00
|
|
|
// Countdown.
|
|
|
|
echo '<li class="nomn">';
|
|
|
|
echo '<div class="vc-refr">';
|
|
|
|
echo '<div id="vc-refr-form">';
|
|
|
|
echo __('Refresh').':';
|
2019-05-17 14:09:30 +02:00
|
|
|
echo html_print_select(
|
|
|
|
get_refresh_time_array(),
|
|
|
|
'vc-refr',
|
|
|
|
$refr,
|
|
|
|
'',
|
|
|
|
'',
|
|
|
|
0,
|
|
|
|
true,
|
|
|
|
false,
|
|
|
|
false
|
|
|
|
);
|
2019-04-29 12:09:40 +02:00
|
|
|
echo '</div>';
|
|
|
|
echo '</div>';
|
|
|
|
echo '</li>';
|
|
|
|
|
2019-04-09 16:36:31 +02:00
|
|
|
// Console name.
|
2019-04-09 15:53:22 +02:00
|
|
|
echo '<li class="nomn">';
|
2019-04-09 16:36:31 +02:00
|
|
|
echo '<div class="vc-title">'.$visualConsoleName.'</div>';
|
2019-04-09 15:53:22 +02:00
|
|
|
echo '</li>';
|
|
|
|
|
|
|
|
echo '</ul>';
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
echo '</div>';
|
2019-04-09 16:36:31 +02:00
|
|
|
// Floating menu - End.
|
2019-04-09 15:53:22 +02:00
|
|
|
?>
|
2019-04-09 16:36:31 +02:00
|
|
|
<style type="text/css">
|
|
|
|
/* Avoid the main_pure container 1000px height */
|
|
|
|
body.pure {
|
|
|
|
min-height: 100px;
|
|
|
|
margin: 0px;
|
|
|
|
overflow: hidden;
|
|
|
|
height: 100%;
|
2019-04-12 09:51:53 +02:00
|
|
|
background-color: <?php echo $visualConsoleData['backgroundColor']; ?>;
|
2019-04-09 16:36:31 +02:00
|
|
|
}
|
|
|
|
div#main_pure {
|
|
|
|
height: 100%;
|
|
|
|
margin: 0px;
|
2019-04-12 09:51:53 +02:00
|
|
|
background-color: <?php echo $visualConsoleData['backgroundColor']; ?>;
|
2019-04-09 16:36:31 +02:00
|
|
|
}
|
|
|
|
</style>
|
2019-04-09 15:53:22 +02:00
|
|
|
<?php
|
|
|
|
}
|
2019-04-11 10:05:28 +02:00
|
|
|
|
2019-04-12 13:59:19 +02:00
|
|
|
// Check groups can access user.
|
|
|
|
$aclUserGroups = [];
|
|
|
|
if (!users_can_manage_group_all('AR')) {
|
|
|
|
$aclUserGroups = array_keys(users_get_groups(false, 'AR'));
|
|
|
|
}
|
|
|
|
|
2019-04-29 12:09:40 +02:00
|
|
|
$ignored_params['refr'] = '';
|
2019-04-17 12:32:08 +02:00
|
|
|
ui_require_javascript_file('pandora_visual_console');
|
|
|
|
include_javascript_d3();
|
|
|
|
visual_map_load_client_resources();
|
|
|
|
|
2019-04-12 09:51:53 +02:00
|
|
|
// Load Visual Console Items.
|
2019-04-12 13:59:19 +02:00
|
|
|
$visualConsoleItems = VisualConsole::getItemsFromDB(
|
|
|
|
$visualConsoleId,
|
|
|
|
$aclUserGroups
|
|
|
|
);
|
2019-04-09 15:53:22 +02:00
|
|
|
?>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
var container = document.getElementById("visual-console-container");
|
|
|
|
var props = <?php echo (string) $visualConsole; ?>;
|
|
|
|
var items = <?php echo '['.implode($visualConsoleItems, ',').']'; ?>;
|
2019-04-22 09:40:08 +02:00
|
|
|
var baseUrl = "<?php echo ui_get_full_url('/', false, false, false); ?>";
|
2019-04-11 10:05:28 +02:00
|
|
|
var handleUpdate = function (prevProps, newProps) {
|
2019-04-12 12:44:45 +02:00
|
|
|
if (!newProps) return;
|
|
|
|
|
|
|
|
// Change the background color when the fullscreen mode is enabled.
|
|
|
|
if (prevProps
|
|
|
|
&& prevProps.backgroundColor != newProps.backgroundColor
|
|
|
|
&& <?php echo json_encode($pure); ?>
|
|
|
|
) {
|
|
|
|
var pureBody = document.querySelector("body.pure");
|
|
|
|
var pureContainer = document.querySelector("div#main_pure");
|
|
|
|
|
|
|
|
if (pureBody !== null) {
|
|
|
|
pureBody.style.backgroundColor = newProps.backgroundColor
|
|
|
|
}
|
|
|
|
if (pureContainer !== null) {
|
|
|
|
pureContainer.style.backgroundColor = newProps.backgroundColor
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Change the title.
|
|
|
|
if (prevProps && prevProps.name != newProps.name) {
|
|
|
|
// View title.
|
|
|
|
var title = document.querySelector(
|
|
|
|
"div#menu_tab_frame_view > div#menu_tab_left span"
|
|
|
|
);
|
|
|
|
if (title !== null) {
|
|
|
|
title.textContent = newProps.name;
|
|
|
|
}
|
|
|
|
// Fullscreen view title.
|
|
|
|
var fullscreenTitle = document.querySelector("div.vc-title");
|
|
|
|
if (fullscreenTitle !== null) {
|
|
|
|
fullscreenTitle.textContent = newProps.name;
|
|
|
|
}
|
|
|
|
// TODO: Change the metaconsole title.
|
|
|
|
}
|
|
|
|
|
|
|
|
// Change the links.
|
|
|
|
if (prevProps && prevProps.id !== newProps.id) {
|
2019-04-29 11:03:56 +02:00
|
|
|
var regex = /(id=|id_visual_console=|id_layout=|id_visualmap=)\d+(&?)/gi;
|
2019-04-12 12:44:45 +02:00
|
|
|
var replacement = '$1' + newProps.id + '$2';
|
|
|
|
|
|
|
|
// Tab links.
|
|
|
|
var menuLinks = document.querySelectorAll("div#menu_tab a");
|
|
|
|
if (menuLinks !== null) {
|
|
|
|
menuLinks.forEach(function (menuLink) {
|
|
|
|
menuLink.href = menuLink.href.replace(regex, replacement);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
// Go back from fullscreen button.
|
|
|
|
var btnNoFull = document.querySelector("a.vc-btn-no-fullscreen");
|
|
|
|
if (btnNoFull !== null) {
|
|
|
|
btnNoFull.href = btnNoFull.href.replace(regex, replacement);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Change the URL (if the browser has support).
|
|
|
|
if ("history" in window) {
|
|
|
|
var href = window.location.href.replace(regex, replacement);
|
|
|
|
window.history.replaceState({}, document.title, href);
|
|
|
|
}
|
|
|
|
}
|
2019-04-09 15:53:22 +02:00
|
|
|
}
|
2019-06-04 17:21:54 +02:00
|
|
|
|
|
|
|
// Add the datetime when the item was received.
|
|
|
|
var receivedAt = new Date();
|
|
|
|
items.map(function(item) {
|
|
|
|
item["receivedAt"] = receivedAt;
|
|
|
|
return item;
|
|
|
|
});
|
|
|
|
|
2019-05-17 14:09:30 +02:00
|
|
|
var visualConsoleManager = createVisualConsole(
|
2019-04-11 10:05:28 +02:00
|
|
|
container,
|
|
|
|
props,
|
|
|
|
items,
|
|
|
|
baseUrl,
|
2019-04-12 10:06:53 +02:00
|
|
|
<?php echo ($refr * 1000); ?>,
|
2019-04-11 10:05:28 +02:00
|
|
|
handleUpdate
|
|
|
|
);
|
|
|
|
|
2019-06-04 17:21:54 +02:00
|
|
|
// Enable/disable the edition mode.
|
|
|
|
$('input[name=edit-mode]').change(function(event) {
|
|
|
|
if ($(this).prop('checked')) {
|
|
|
|
visualConsoleManager.visualConsole.enableEditMode();
|
2019-06-04 17:34:40 +02:00
|
|
|
visualConsoleManager.changeUpdateInterval(0);
|
2019-07-26 14:17:14 +02:00
|
|
|
$('#edit-controls').css('visibility', '');
|
2019-06-04 17:21:54 +02:00
|
|
|
} else {
|
|
|
|
visualConsoleManager.visualConsole.disableEditMode();
|
2019-06-04 17:34:40 +02:00
|
|
|
visualConsoleManager.changeUpdateInterval(<?php echo ($refr * 1000); ?>); // To ms.
|
2019-07-26 14:17:14 +02:00
|
|
|
$('#edit-controls').css('visibility', 'hidden');
|
2019-06-04 17:21:54 +02:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2019-05-17 14:09:30 +02:00
|
|
|
// Update the data fetch interval.
|
|
|
|
$('select#vc-refr').change(function(event) {
|
|
|
|
var refr = Number.parseInt(event.target.value);
|
2019-04-29 12:09:40 +02:00
|
|
|
|
2019-05-17 14:09:30 +02:00
|
|
|
if (!Number.isNaN(refr)) {
|
|
|
|
visualConsoleManager.changeUpdateInterval(refr * 1000); // To ms.
|
|
|
|
|
|
|
|
// Change the URL (if the browser has support).
|
|
|
|
if ("history" in window) {
|
|
|
|
var regex = /(refr=)\d+(&?)/gi;
|
|
|
|
var replacement = '$1' + refr + '$2';
|
|
|
|
var href = window.location.href.replace(regex, replacement);
|
|
|
|
window.history.replaceState({}, document.title, href);
|
|
|
|
}
|
2019-04-29 12:09:40 +02:00
|
|
|
}
|
2019-04-11 10:05:28 +02:00
|
|
|
});
|
2019-07-25 17:58:37 +02:00
|
|
|
|
2019-07-30 11:20:03 +02:00
|
|
|
visualConsoleManager.visualConsole.onItemSelectionChanged(function (e) {
|
|
|
|
if (e.selected === true) {
|
|
|
|
$('#button-button_delete').prop('disabled', false);
|
|
|
|
$('#button-button_copy').prop('disabled', false);
|
|
|
|
} else {
|
|
|
|
$('#button-button_delete').prop('disabled', true);
|
|
|
|
$('#button-button_copy').prop('disabled', true);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#button-button_delete').click(function (event){
|
|
|
|
// visualConsoleManager.visualConsole.deleteItem();
|
|
|
|
visualConsoleManager.visualConsole.elements.forEach(item => {
|
|
|
|
if (item.meta.isSelected === true) {
|
|
|
|
visualConsoleManager.deleteItem(item);
|
|
|
|
}
|
|
|
|
});
|
2019-07-26 14:17:14 +02:00
|
|
|
});
|
2019-07-25 17:58:37 +02:00
|
|
|
|
2019-07-30 11:20:03 +02:00
|
|
|
$('#button-button_copy').click(function (event){
|
|
|
|
|
2019-07-25 17:58:37 +02:00
|
|
|
});
|
2019-04-09 15:53:22 +02:00
|
|
|
</script>
|