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; });