summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chimere/static/chimere/js/jquery.chimere.js16
1 files changed, 13 insertions, 3 deletions
diff --git a/chimere/static/chimere/js/jquery.chimere.js b/chimere/static/chimere/js/jquery.chimere.js
index fbb3ecd..9ec51e6 100644
--- a/chimere/static/chimere/js/jquery.chimere.js
+++ b/chimere/static/chimere/js/jquery.chimere.js
@@ -304,11 +304,21 @@ OpenLayers.Layer.MapQuestOSM = OpenLayers.Class(OpenLayers.Layer.XYZ, {
* Add event listener in categories DOM elements
*/
$('#categories #ul_categories > li > input').bind("click", function () {
- _toggle_subcategories($(this));methods.loadGeoObjects();settings.permalink.updateLink();});
+ methods.hidePopup();
+ _toggle_subcategories($(this));
+ methods.loadGeoObjects();
+ settings.permalink.updateLink();
+ });
$('.subcategories li input').bind("click", function () {
- methods.loadGeoObjects();_toggle_categories($(this));settings.permalink.updateLink();});
+ methods.hidePopup();
+ methods.loadGeoObjects();
+ _toggle_categories($(this));
+ settings.permalink.updateLink();
+ });
$('#display_submited_check').bind("click", function () {
- methods.loadGeoObjects();settings.permalink.updateLink();});
+ methods.loadGeoObjects();
+ settings.permalink.updateLink();
+ });
// Zoom to category
$(".zoom_to_category").bind("click", function (e) {var id = this.id.substr(this.id.lastIndexOf("_")+1); helpers.zoom_to_category(id);});
$(".zoom_to_subcategory").bind("click", function (e) {var id = this.id.substr(this.id.lastIndexOf("_")+1); helpers.zoom_to_subcategories([id]);});