From f54bca87edb864cefff978f7fed8a16ec2fe8336 Mon Sep 17 00:00:00 2001 From: vgilc Date: Wed, 8 Feb 2012 09:50:36 +0000 Subject: [PATCH] 2012-02-08 Vanessa Gil * godmode/events/custom_events.php: Remove comments. * operation/events/events_list.php: Show criticity only for alerts. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5514 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/godmode/events/custom_events.php | 3 --- pandora_console/operation/events/events_list.php | 14 ++++++++------ 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index ac6d7bb034..c86f7b274d 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2012-02-08 Vanessa Gil + * godmode/events/custom_events.php: Remove comments. + + * operation/events/events_list.php: Show criticity only for + alerts. + 2012-02-07 Vanessa Gil * pandoradb.sql pandoradb.postgreSQL.sql diff --git a/pandora_console/godmode/events/custom_events.php b/pandora_console/godmode/events/custom_events.php index bfba338bb3..b2f10402b1 100644 --- a/pandora_console/godmode/events/custom_events.php +++ b/pandora_console/godmode/events/custom_events.php @@ -123,9 +123,7 @@ $(document).ready (function () { field_name = $(value).html(); if (field_name != ){ id_field = $(value).attr('value'); - //$("select[name='fields_available[]']").append($("").val(field_name)); $("select[name='fields_selected[]']").append($("").html(field_name).attr("value", field_name)); - //$("select[name='fields_selected[]']").append($("").val(field_name).html('' + field_name + '')); $("#fields_available").find("option[value='" + id_field + "']").remove(); } }); @@ -136,7 +134,6 @@ $(document).ready (function () { field_name = $(value).html(); if (field_name != ){ id_field = $(value).attr('value'); - //alert(id_field); $("select[name='fields_available[]']").append($("").val(field_name).html('' + field_name + '')); $("#fields_selected").find("option[value='" + id_field + "']").remove(); } diff --git a/pandora_console/operation/events/events_list.php b/pandora_console/operation/events/events_list.php index ade8f78c87..5324b6396b 100644 --- a/pandora_console/operation/events/events_list.php +++ b/pandora_console/operation/events/events_list.php @@ -825,6 +825,13 @@ foreach ($result as $event) { $string .= ''; //$odd = ''; $odd = ($odd == '')? 'rowOdd' : ''; + + if ($event["criticity"] != '') { + $string .= '' . '' . __('Criticity') . ''; + $string .= $event["criticity"]; + $string .= ''; + $odd = ($odd == '')? 'rowOdd' : ''; + } } $string .= ''; @@ -885,12 +892,7 @@ foreach ($result as $event) { $string .= '- ' . __('Empty') . ' -'; $odd = ($odd == '')? 'rowOdd' : ''; } - if ($event["criticity"] != '') { - $string .= '' . '' . __('Criticity') . ''; - $string .= $event["criticity"]; - $string .= ''; - $odd = ($odd == '')? 'rowOdd' : ''; - } + $string .= ''; $string .= '';