diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000..3de8a8ebac --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +pandora_console/attachment/agents diff --git a/pandora_console/godmode/alerts/configure_alert_action.php b/pandora_console/godmode/alerts/configure_alert_action.php index 1b57c53780..0c9f2c6931 100644 --- a/pandora_console/godmode/alerts/configure_alert_action.php +++ b/pandora_console/godmode/alerts/configure_alert_action.php @@ -472,24 +472,16 @@ $(document).ready (function () { $table_macros_field.show(); } - tinyMCE.init({ - selector: 'textarea.tiny-mce-editor', - theme : "advanced", - plugins : "preview, print, table, searchreplace, nonbreaking, xhtmlxtras, noneditable", - theme_advanced_buttons1 : "bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsize,select", - theme_advanced_buttons2 : "search,replace,|,bullist,numlist,|,undo,redo,|,link,unlink,image,|,cleanup,code,preview,|,forecolor,backcolor", - theme_advanced_buttons3 : "", - theme_advanced_toolbar_location : "top", - theme_advanced_toolbar_align : "left", - theme_advanced_resizing : true, - theme_advanced_statusbar_location : "bottom", - force_p_newlines : false, - forced_root_block : '', - inline_styles : true, - valid_children : "+body[style]", - element_format : "html" - }); - + var added_config = { + "selector": "textarea.tiny-mce-editor", + "plugins": "preview, print, table, searchreplace, nonbreaking, xhtmlxtras, noneditable", + "theme_advanced_buttons1": "bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsizeselect", + "theme_advanced_buttons2": "search,replace,|,bullist,numlist,|,undo,redo,|,link,unlink,image,|,cleanup,code,preview,|,forecolor,backcolor", + "valid_children": "+body[style]", + "width": "90%", + } + defineTinyMCE(added_config); + render_command_preview(original_command); render_command_recovery_preview(original_command); diff --git a/pandora_console/godmode/alerts/configure_alert_template.php b/pandora_console/godmode/alerts/configure_alert_template.php index 9333664477..8c5ec47f38 100644 --- a/pandora_console/godmode/alerts/configure_alert_template.php +++ b/pandora_console/godmode/alerts/configure_alert_template.php @@ -1507,23 +1507,19 @@ if ($step == 2) { } }); - tinyMCE.init({ - selector: 'textarea.tiny-mce-editor', - theme : "advanced", - plugins : "preview, print, table, searchreplace, nonbreaking, xhtmlxtras, noneditable", - theme_advanced_buttons1 : "bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsize,select", - theme_advanced_buttons2 : "search,replace,|,bullist,numlist,|,undo,redo,|,link,unlink,image,|,cleanup,code,preview,|,forecolor,backcolor", - theme_advanced_buttons3 : "", - theme_advanced_toolbar_location : "top", - theme_advanced_toolbar_align : "left", - theme_advanced_resizing : true, - theme_advanced_statusbar_location : "bottom", - force_p_newlines : false, - forced_root_block : '', - inline_styles : true, - valid_children : "+body[style]", - element_format : "html" - }); + var added_config = { + "selector": 'textarea.tiny-mce-editor', + "plugins": "preview, print, table, searchreplace, nonbreaking, xhtmlxtras, noneditable", + "theme_advanced_buttons1": "bold,italic,underline,|,cut,copy,paste,|,justifyleft,justifycenter,justifyright,|,forecolor,backcolor,|,formatselect,fontselect,fontsizeselect", + "theme_advanced_buttons2": "search,replace,|,bullist,numlist,|,undo,redo,|,link,unlink,image,|,cleanup,code,preview", + "force_p_newlines" : false, + "forced_root_block" : '', + "inline_styles": true, + "valid_children": "+body[style]", + } + + defineTinyMCE(added_config); + diff --git a/pandora_console/godmode/reporting/reporting_builder.item_editor.php b/pandora_console/godmode/reporting/reporting_builder.item_editor.php index 7ed28558ce..a11ec3e801 100755 --- a/pandora_console/godmode/reporting/reporting_builder.item_editor.php +++ b/pandora_console/godmode/reporting/reporting_builder.item_editor.php @@ -3891,7 +3891,6 @@ $(document).ready (function () { case 'historical_data': case 'agent_configuration': case 'module_histogram_graph': - case 'event_report_log': case 'increment': if ($("#hidden-id_agent").val() == 0) { dialog_message('#message_no_agent'); @@ -3911,6 +3910,12 @@ $(document).ready (function () { return false; } break; + case 'event_report_log': + if ($("#id_agents3").val() == '') { + dialog_message('#message_no_agent'); + return false; + } + break; default: break; } diff --git a/pandora_console/godmode/reporting/visual_console_builder.editor.php b/pandora_console/godmode/reporting/visual_console_builder.editor.php index 9b6697533f..d6c46435c1 100755 --- a/pandora_console/godmode/reporting/visual_console_builder.editor.php +++ b/pandora_console/godmode/reporting/visual_console_builder.editor.php @@ -195,54 +195,21 @@ ui_require_javascript_file('encode_decode_base64'); id_visual_console = ; visual_map_main(); - tinyMCE.init({ - mode : "exact", - elements: "text-label", - convert_urls: false, - theme : "advanced", - - theme_advanced_font_sizes : - "4pt=.visual_font_size_4pt, " + - "6pt=.visual_font_size_6pt, " + - "8pt=.visual_font_size_8pt, " + - "10pt=.visual_font_size_10pt, " + - "12pt=.visual_font_size_12pt, " + - "14pt=.visual_font_size_14pt, " + - "18pt=.visual_font_size_18pt, " + - "24pt=.visual_font_size_24pt, " + - "28pt=.visual_font_size_28pt, " + - "36pt=.visual_font_size_36pt, " + - "48pt=.visual_font_size_48pt, " + - "60pt=.visual_font_size_60pt, " + - "72pt=.visual_font_size_72pt, " + - "84pt=.visual_font_size_84pt, " + - "96pt=.visual_font_size_96pt, " + - "116pt=.visual_font_size_116pt, " + - "128pt=.visual_font_size_128pt, " + - "140pt=.visual_font_size_140pt, " + - "154pt=.visual_font_size_154pt, " + - "196pt=.visual_font_size_196pt", - theme_advanced_toolbar_location : "top", - theme_advanced_toolbar_align : "left", - theme_advanced_buttons1 : "bold,italic, |, justifyleft, justifycenter, justifyright, |,undo, redo, |, image, link, |, fontselect, |, forecolor, fontsizeselect, |, code", - theme_advanced_buttons2 : "", - theme_advanced_buttons3 : "", - theme_advanced_statusbar_location : "none", - width: "400", - height: "200", - nowrap: true, - plugins : "noneditable", - inline_styles : true, - valid_children : "+body[style]", - element_format : "html", - editor_deselector : "noselected" - }); + var added_config = { + "plugins": "noneditable", + "elements": "text-label", + "theme_advanced_buttons1": + "bold,italic,|,justifyleft,justifycenter,justifyright,|,undo,redo,|,image,link,|,fontselect,|,forecolor,fontsizeselect,|,code", + "valid_children": "+body[style]", + "theme_advanced_font_sizes": "true", + "content_css": , + "editor_deselector": "noselected", + "inline_styles": true, + "nowrap": true, + "width": "50%", + "height": "100%", + } + defineTinyMCE(added_config); $('.item img').each(function(){ diff --git a/pandora_console/godmode/reporting/visual_console_builder.elements.php b/pandora_console/godmode/reporting/visual_console_builder.elements.php index 50880357fc..a06eecdc0f 100755 --- a/pandora_console/godmode/reporting/visual_console_builder.elements.php +++ b/pandora_console/godmode/reporting/visual_console_builder.elements.php @@ -710,48 +710,25 @@ ui_require_javascript_file('tiny_mce', 'include/javascript/tiny_mce/');