2014-04-24 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* operation/events/events.build_table.php: Fixed multiple validation of events in event list view. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9807 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
3506f20654
commit
65d8dfba38
|
@ -1,3 +1,8 @@
|
|||
2014-04-24 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
|
||||
* operation/events/events.build_table.php: Fixed
|
||||
multiple validation of events in event list view.
|
||||
|
||||
2014-04-23 Vanessa Gil <vanessa.gil@artica.es>
|
||||
|
||||
* godmode/agentes/agent_wizard.snmp_explorer.php: Changed
|
||||
|
|
|
@ -578,24 +578,29 @@ if (!empty ($table->data)) {
|
|||
echo '<div style="width: 98%;" class="action-buttons">';
|
||||
if (!$readonly && tags_check_acl ($config["id_user"], 0, "EW", $event['clean_tags']) == 1) {
|
||||
html_print_button(__('Validate selected'), 'validate_button', false, 'validate_selected();', 'class="sub ok"');
|
||||
// Fix: validated_selected JS function has to be included with the proper user ACLs
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
function validate_selected() {
|
||||
$(".chk_val").each(function() {
|
||||
if($(this).is(":checked")) {
|
||||
validate_event_advanced($(this).val(),1);
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
if (!$readonly && tags_check_acl ($config["id_user"], 0,"EM", $event['clean_tags']) == 1) {
|
||||
html_print_button(__('Delete selected'), 'delete_button', false, 'delete_selected();', 'class="sub delete"');
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
function delete_selected() {
|
||||
if(confirm('<?php echo __('Are you sure?'); ?>')) {
|
||||
$("#hidden_delete_events").val(1);
|
||||
$("#form_events").submit();
|
||||
}
|
||||
}
|
||||
function validate_selected() {
|
||||
$(".chk_val").each(function() {
|
||||
if($(this).is(":checked")) {
|
||||
validate_event_advanced($(this).val(),1);
|
||||
function delete_selected() {
|
||||
if(confirm('<?php echo __('Are you sure?'); ?>')) {
|
||||
$("#hidden_delete_events").val(1);
|
||||
$("#form_events").submit();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue