summaryrefslogtreecommitdiff
path: root/chimere/static
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-07-17 12:16:04 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-07-17 12:16:56 +0200
commit40216eb134a58f5f94b658fdcc00f48edc4cdee9 (patch)
tree8f73bf10fc75be62aab4ba595810d362fb7512d0 /chimere/static
parent0c09f902e1b77b39c0c82aff874095aa67656059 (diff)
downloadChimère-40216eb134a58f5f94b658fdcc00f48edc4cdee9.tar.bz2
Chimère-40216eb134a58f5f94b658fdcc00f48edc4cdee9.zip
Mobile: single click category mode
Diffstat (limited to 'chimere/static')
-rw-r--r--chimere/static/chimere/js/jquery.chimere.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/chimere/static/chimere/js/jquery.chimere.js b/chimere/static/chimere/js/jquery.chimere.js
index 53eadc1..ec9513e 100644
--- a/chimere/static/chimere/js/jquery.chimere.js
+++ b/chimere/static/chimere/js/jquery.chimere.js
@@ -226,6 +226,7 @@ function transformCoordToLonLat(coord) {
lat: null,
lon: null,
simple: false,
+ single_click_category: false,
routing_start_lat: null,
routing_start_lon: null,
routing_end_lat: null,
@@ -1812,6 +1813,12 @@ function transformCoordToLonLat(coord) {
$('#layer_cat_'+c_name).prop("checked",
this.checked);
}
+ if (settings[map_id].single_click_category){
+ if($("#switch-menu").is(":visible")){
+ $("#switch-map").click();
+ slow = true;
+ }
+ }
methods._hidePopup(map_id, e);
});
$(".main-category-tick").bind("click", function(event){