diff --git a/README.md b/README.md index ddcc475..f87acbc 100644 --- a/README.md +++ b/README.md @@ -27,12 +27,13 @@ - [ ] change appearance of filter according to other filters - [/] deal with window size -- la carte ne s'affiche pas sur les pages -- infowindow enlever scroll border -- zoom sur cluster problem -- enlever ordre alphabetique categories -- reduire espace checkboxs -- reduire hauteur du select menu +- [/] la carte ne s'affiche pas sur les pages +- [ ] zoom sur cluster problem +- [ ] filtes sur chrome +- [ ] infowindow new design et enlever scroll border +- [ ] enlever ordre alphabetique categories +- [ ] reduire espace checkboxs +- [ ] reduire hauteur du select menu #### verifications: - api only for this site on fabien's google account diff --git a/srcs/plugins/map_prof/map_prof_hooks.php b/srcs/plugins/map_prof/map_prof_hooks.php index fa3a8f0..05ec399 100644 --- a/srcs/plugins/map_prof/map_prof_hooks.php +++ b/srcs/plugins/map_prof/map_prof_hooks.php @@ -103,24 +103,21 @@ function mp_ljdp_map() { */ $events = mp_get_published_events(); - mp_console_log("php events:"); - mp_console_log($events); + //mp_console_log("php events:"); + //mp_console_log($events); $locations = mp_sort_events($events); - mp_console_log("php locations:"); - mp_console_log($locations); + //mp_console_log("php locations:"); + //mp_console_log($locations); $filters = mp_get_filters($events); - mp_console_log("php filters:"); - mp_console_log($filters); - - $to_add = array( - "locations" => $locations, - "filters" => $filters, - ); + //mp_console_log("php filters:"); + //mp_console_log($filters); // if post event instead of map page, change ccoordinate and zoom global $mp_zoom; + global $mp_zoom_set; + global $mp_coordinates_default; if (is_event_post()) { $mp_zoom = $mp_zoom_set[1]; @@ -130,6 +127,11 @@ function mp_ljdp_map() { $mp_coordinates_default = $coordinates; } + $to_add = array( + "locations" => $locations, + "filters" => $filters, + ); + mp_add_to_scripts($to_add); diff --git a/srcs/plugins/map_prof/mp_create_div.php b/srcs/plugins/map_prof/mp_create_div.php index f748bf7..4532359 100644 --- a/srcs/plugins/map_prof/mp_create_div.php +++ b/srcs/plugins/map_prof/mp_create_div.php @@ -2,25 +2,24 @@ function mp_filter_drop_down($key, &$filter) { + /* + onfocusin="filter_show_only_selection(this, '.json_encode($value->indexes).', '."'".$key."'".')" + onclick="filter_show_only_selection(this, '.json_encode($value->indexes).', '."'".$key."'".')" + onfocus="filter_show_only_selection(this, '.json_encode($value->indexes).', '."'".$key."'".')" + onclick="filter_show_only_selection(this, '.json_encode(array()).', '."'".$key."'".')" + onchange="filter_show_only_selection(this, '.json_encode($value->indexes).', '."'".$key."'".')" + */ $content = '