diff --git a/pandora_console/include/javascript/pandora_events.js b/pandora_console/include/javascript/pandora_events.js
index c52f36607f..a102b1e376 100644
--- a/pandora_console/include/javascript/pandora_events.js
+++ b/pandora_console/include/javascript/pandora_events.js
@@ -669,7 +669,7 @@ function show_event_response_command_dialog(id, response, total_checked) {
});
}
-function update_event(table, id_evento, type) {
+function update_event(table, id_evento, type, redraw) {
var inputs = $("#events_form :input");
var values = {};
inputs.each(function() {
@@ -688,20 +688,22 @@ function update_event(table, id_evento, type) {
filter: values
},
success: function() {
- table.draw().page(0);
+ if (redraw) {
+ table.draw().page(0);
+ }
}
});
}
function validate_event(table, id_evento) {
- return update_event(table, id_evento, { validate_event: 1 });
+ return update_event(table, id_evento, { validate_event: 1 }, false);
}
function in_process_event(table, id_evento) {
- return update_event(table, id_evento, { in_process_event: 1 });
+ return update_event(table, id_evento, { in_process_event: 1 }, false);
}
-function delete_event(table, id_evento, row) {
+function delete_event(table, id_evento) {
$(row)
.closest("tr")
.remove();
diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php
index be4499c300..8ec1783bb5 100644
--- a/pandora_console/operation/events/events.php
+++ b/pandora_console/operation/events/events.php
@@ -1428,7 +1428,7 @@ function process_datatables_item(item) {
item.options += ')" > __('Show more')]); ?>';
// Validate.
- item.options += '';
item.options += ' __('Validate events')]); ?>';
@@ -1438,7 +1438,7 @@ function process_datatables_item(item) {
}
// In process.
- item.options += '';
} else {
@@ -1447,7 +1447,7 @@ function process_datatables_item(item) {
item.options += ' __('Change to in progress status')]); ?>';
// Delete.
- item.options += '';
item.options += ' __('Delete events')]); ?>';