summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-11-14 16:10:35 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-11-14 16:10:35 +0100
commit594b06d8d8ac5ba6db749e14289425b635b67228 (patch)
tree34fe42e218b9ba4fa4d4906eee540e79c28f2592
parent9d4c601bfd517ce5da689abb0056157be8250af5 (diff)
downloadChimère - projet Saclay-594b06d8d8ac5ba6db749e14289425b635b67228.tar.bz2
Chimère - projet Saclay-594b06d8d8ac5ba6db749e14289425b635b67228.zip
Update to new permalink management
-rw-r--r--static/saclay/css/styles.css1
-rw-r--r--templates/chimere/blocks/map.html6
2 files changed, 6 insertions, 1 deletions
diff --git a/static/saclay/css/styles.css b/static/saclay/css/styles.css
index d2c6e63..5d0933a 100644
--- a/static/saclay/css/styles.css
+++ b/static/saclay/css/styles.css
@@ -225,6 +225,7 @@ h3.warn{
}
#permalink{
+ display: none;
position:absolute;
z-index:20;
right:280px;
diff --git a/templates/chimere/blocks/map.html b/templates/chimere/blocks/map.html
index 3633146..634cc58 100644
--- a/templates/chimere/blocks/map.html
+++ b/templates/chimere/blocks/map.html
@@ -141,9 +141,13 @@ $("#{{map_id}}").show();
$("#{{map_id}}").chimere(chimere_init_options);
{% if zoom %}
- if (!permalink) $('#maps').chimere('zoom', {'area':{{zoom}} });
+ if (!permalink) $('#{{map_id}}').chimere('zoom', {'area':{{zoom}} });
{% endif %}
+ function update_permalink(){
+ $('#{{map_id}}').chimere('update_permalink');
+ };
+
// init layer selection
$(function() {
{% for layer_name, js, def in map_layers %}