summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-08-02 18:43:19 +0200
committerÉtienne Loks <etienne.loks@proxience.com>2015-08-02 18:43:19 +0200
commit331b9bd436bba5ed95a44865a200255a3398248d (patch)
tree0e81b0180ac23af1df58c6b2147cba49b266b048 /templates
parent3bc7d8a2d475584dcaf13f9cb046bbb50254c988 (diff)
downloadChimère - projet de référence-331b9bd436bba5ed95a44865a200255a3398248d.tar.bz2
Chimère - projet de référence-331b9bd436bba5ed95a44865a200255a3398248d.zip
JS: initialize has_search before calling interface.js
Diffstat (limited to 'templates')
-rw-r--r--templates/chimere/base.html3
-rw-r--r--templates/chimere/main_map.html1
2 files changed, 3 insertions, 1 deletions
diff --git a/templates/chimere/base.html b/templates/chimere/base.html
index 9089251..70b5929 100644
--- a/templates/chimere/base.html
+++ b/templates/chimere/base.html
@@ -13,6 +13,9 @@
<link rel="stylesheet" href="{{ STATIC_URL }}chimere/css/form-compat.css" />
<link rel="stylesheet" href="{{ STATIC_URL }}chimere/css/extra-styles.css" />
<script src="{{ STATIC_URL }}bootstrap/bootstrap.min.js" type="text/javascript"></script>
+ <script type='text/javascript'>
+ var has_search = {% if has_search %}true{% else %}false{% endif %};
+ </script>
<script src="{{ STATIC_URL }}chimere/js/interface.js" type="text/javascript"></script>
{% endblock %}
{% block header %}
diff --git a/templates/chimere/main_map.html b/templates/chimere/main_map.html
index ef04334..90b9587 100644
--- a/templates/chimere/main_map.html
+++ b/templates/chimere/main_map.html
@@ -36,7 +36,6 @@
{% map_menu %}
{% map 'main-map' %}
<script type='text/javascript'>
- var has_search = {% if has_search %}true{% else %}false{% endif %};
// array to keep trace of already displayed items
var search_result = new Array();
var search_url = "/search/";