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
f88b2891c0
commit
0b77d1d0d4
pandora_console
|
@ -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>
|
2014-04-23 Vanessa Gil <vanessa.gil@artica.es>
|
||||||
|
|
||||||
* godmode/agentes/agent_wizard.snmp_explorer.php: Changed
|
* godmode/agentes/agent_wizard.snmp_explorer.php: Changed
|
||||||
|
|
|
@ -578,24 +578,29 @@ if (!empty ($table->data)) {
|
||||||
echo '<div style="width: 98%;" class="action-buttons">';
|
echo '<div style="width: 98%;" class="action-buttons">';
|
||||||
if (!$readonly && tags_check_acl ($config["id_user"], 0, "EW", $event['clean_tags']) == 1) {
|
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"');
|
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) {
|
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"');
|
html_print_button(__('Delete selected'), 'delete_button', false, 'delete_selected();', 'class="sub delete"');
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function delete_selected() {
|
function delete_selected() {
|
||||||
if(confirm('<?php echo __('Are you sure?'); ?>')) {
|
if(confirm('<?php echo __('Are you sure?'); ?>')) {
|
||||||
$("#hidden_delete_events").val(1);
|
$("#hidden_delete_events").val(1);
|
||||||
$("#form_events").submit();
|
$("#form_events").submit();
|
||||||
}
|
|
||||||
}
|
|
||||||
function validate_selected() {
|
|
||||||
$(".chk_val").each(function() {
|
|
||||||
if($(this).is(":checked")) {
|
|
||||||
validate_event_advanced($(this).val(),1);
|
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue