diff --git a/pandora_console/godmode/agentes/planned_downtime.editor.php b/pandora_console/godmode/agentes/planned_downtime.editor.php index 48a7032dbb..d8e337c738 100755 --- a/pandora_console/godmode/agentes/planned_downtime.editor.php +++ b/pandora_console/godmode/agentes/planned_downtime.editor.php @@ -512,7 +512,7 @@ if ($id_downtime > 0) { echo html_print_select (array(), "module[]", '', '', '', 0, false, true, true, '', false, 'width: 180px;'); echo ""; echo "


"; - html_print_submit_button (__('Add'), '', $disabled_add_button, 'class="sub next"',false); + html_print_submit_button (__('Add'), 'add_item', $disabled_add_button, 'class="sub next"',false); echo ""; echo ""; @@ -970,5 +970,18 @@ ui_require_jquery_file("ui.datepicker-" . get_user_language(), "include/javascri $("#id_agent").blur (function () { $(this).css ("width", "180px"); }); + + // Warning message about the problems caused updating a past planned downtime + var type_execution = ""; + var datetime_from = ; + var datetime_now = ; + var create = ; + if (!create && (type_execution == 'periodically' || (type_execution == 'once' && datetime_from < datetime_now))) { + $("input#submit-updbutton, input#submit-add_item, table#list a").click(function (e) { + if (!confirm("")) { + e.preventDefault(); + } + }); + } });