mirror of
https://github.com/nikdoof/vapemap.git
synced 2025-12-18 12:19:24 +00:00
Define static_url in JS env for easier static working.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
var store_icon = '/static/img/map_icons/home-2.png'
|
var store_icon = static_url + 'img/map_icons/home-2.png'
|
||||||
var online_icon = '/static/img/map_icons/wifi.png'
|
var online_icon = static_url + 'img/map_icons/wifi.png'
|
||||||
var geolocation_icon = '/static/img/map_icons/home-2-green.png'
|
var geolocation_icon = static_url + '/img/map_icons/home-2-green.png'
|
||||||
|
|
||||||
function lookup_marker(id) {
|
function lookup_marker(id) {
|
||||||
if (id == null || id == 1) {
|
if (id == null || id == 1) {
|
||||||
|
|||||||
@@ -19,7 +19,8 @@
|
|||||||
<![endif]-->
|
<![endif]-->
|
||||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
//
|
var static_url = '{{ STATIC_URL }}';
|
||||||
|
var django = {'jQuery': $};
|
||||||
</script>
|
</script>
|
||||||
{% block style %}
|
{% block style %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user