From aff91aa1b2e6df9e572965ecd5e7ed6a4ae009cb Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Thu, 12 Jan 2023 12:42:48 +0100 Subject: [PATCH] #10126 added button save in visual console --- .../godmode/reporting/visual_console_builder.elements.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pandora_console/godmode/reporting/visual_console_builder.elements.php b/pandora_console/godmode/reporting/visual_console_builder.elements.php index b331f5bdac..870316af29 100755 --- a/pandora_console/godmode/reporting/visual_console_builder.elements.php +++ b/pandora_console/godmode/reporting/visual_console_builder.elements.php @@ -862,9 +862,15 @@ ui_require_javascript_file('tiny_mce', 'include/javascript/tiny_mce/'); height: 300, autoOpen: false, beforeClose: function() { + console.log("Entra"); var id_layout_data = $("#active_id_layout_data").val(); var label = tinyMCE.activeEditor.getContent(); $("#hidden-label_" + id_layout_data).val(label); + }, + buttons: { + Save: function() { + $(this).dialog("close"); + } } });