diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index d39f17e863..44416de768 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,11 @@ +2012-11-08 Miguel de Dios + + * operation/events/events.php, include/functions_tags.php: cleaned + source code style. + + * godmode/events/event_edit_filter.php: fixed the lost vars in + the javascript code for the none elements in the tag select widgets. + 2012-11-08 Sergio Martin * include/functions_graph.php diff --git a/pandora_console/godmode/events/event_edit_filter.php b/pandora_console/godmode/events/event_edit_filter.php index ae6db9a17d..470926d2f2 100644 --- a/pandora_console/godmode/events/event_edit_filter.php +++ b/pandora_console/godmode/events/event_edit_filter.php @@ -363,6 +363,9 @@ var select_without_tag_empty = ; var origin_select_with_tag_empty = ; var origin_select_without_tag_empty = ; +var val_none = 0; +var text_none = ""; + $(document).ready( function() { $("#button-add_whith").click(function() { click_button_add_tag("with"); diff --git a/pandora_console/include/functions_tags.php b/pandora_console/include/functions_tags.php index e897bc4380..95d1b9345e 100644 --- a/pandora_console/include/functions_tags.php +++ b/pandora_console/include/functions_tags.php @@ -698,14 +698,14 @@ function tags_get_policy_module_tags ($id_policy_module){ * * @return mixed Array with tags. */ -function tags_get_all_tags (){ +function tags_get_all_tags () { $tags = db_get_all_fields_in_table('ttag', 'name'); if ($tags === false) return false; $return = array(); - foreach ($tags as $id => $tag){ + foreach ($tags as $id => $tag) { $return[$id] = $tag['name']; } diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php index a5c71e2cb3..814d1a9547 100644 --- a/pandora_console/operation/events/events.php +++ b/pandora_console/operation/events/events.php @@ -620,7 +620,7 @@ $(document).ready( function() { "similars" : }, function (data, status) { - if (data == "ok") { + if (data == "ok") { $tr.remove (); $('#show_message_error').html('

'); }