From 6c63b2ab1a0a089addb07279f84f84fa506b89ad Mon Sep 17 00:00:00 2001 From: juanmanuelr Date: Thu, 9 Feb 2012 19:17:43 +0000 Subject: [PATCH] 2012-02-09 Juan Manuel Ramon * operation/events/events_list.php: Added colors in name and group at creation time and now update button is showed when a filter is created. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5542 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/operation/events/events_list.php | 11 ++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 5ce12c15db..f773cbb45b 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2012-02-09 Juan Manuel Ramon + + * operation/events/events_list.php: Added colors in name and group + at creation time and now update button is showed when a filter is + created. + 2012-02-09 Juan Manuel Ramon * include/help/en/help_field_match_snmp.php diff --git a/pandora_console/operation/events/events_list.php b/pandora_console/operation/events/events_list.php index 4f5188d115..c43562c11a 100644 --- a/pandora_console/operation/events/events_list.php +++ b/pandora_console/operation/events/events_list.php @@ -257,12 +257,12 @@ echo '
'; // Filter name -echo "".__('Filter name').""; +echo "".__('Filter name').""; html_print_input_text ('id_name', $id_name, '', 15); echo ""; // Filter group -echo "".__('Filter group').""; +echo "".__('Filter group').""; html_print_select_groups($config["id_user"], "IR", true, 'id_group', $id_group, '', '', 0, false, false, false, 'w130'); echo ""; @@ -1195,8 +1195,12 @@ $(document).ready( function() { if ($('#row_name').css('visibility') == 'hidden') { $('#row_name').css('visibility', ''); $('#show_filter_error').html('

'); + $('#filter_name_color').css('color', '#CC0000'); + $('#filter_group_color').css('color', '#CC0000'); // If the filter has name insert in database }else{ + $('#filter_name_color').css('color', '#000000'); + $('#filter_group_color').css('color', '#000000'); // If the filter name is blank show error if ($('#text-id_name').val() == '') { $('#show_filter_error').html('

'); @@ -1253,7 +1257,8 @@ $(document).ready( function() { }); }, "json" - ); + ); + $("#submit-update_filter").css('visibility', ''); } return false; });