mirror of
https://github.com/nikdoof/vapemap.git
synced 2025-12-14 14:52:16 +00:00
Use the chain stores instead of non existent template object.
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
<script type="text/javascript" src="{% static "js/gmap.js" %}"></script>
|
<script type="text/javascript" src="{% static "js/gmap.js" %}"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var stores = [
|
var stores = [
|
||||||
{% for store in store_list %}{% if store.address.geo_latitude %}['{{ store }}', {{ store.address.geo_latitude }}, {{ store.address.geo_longitude }}, {{ store.store_type }}, '{% url "store-detail" store.slug %}'],{% endif %}
|
{% for store in chain.stores.all %}{% if store.address.geo_latitude %}['{{ store }}', {{ store.address.geo_latitude }}, {{ store.address.geo_longitude }}, {{ store.store_type }}, '{% url "store-detail" store.slug %}'],{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
];
|
];
|
||||||
$(document).ready(function(){initialize_map(stores, document.getElementById('map-canvas-stores'))});
|
$(document).ready(function(){initialize_map(stores, document.getElementById('map-canvas-stores'))});
|
||||||
|
|||||||
Reference in New Issue
Block a user