|
@@ -28,12 +28,12 @@
|
|
{% endfor %}
|
|
{% endfor %}
|
|
|
|
|
|
{% for id, refpoint in panorama.refpoints_data %}
|
|
{% for id, refpoint in panorama.refpoints_data %}
|
|
- point_list[{{ id }}] = new Array("{{ refpoint.name }}", {{ refpoint.distance }}, {{ refpoint.cap }}, {{ refpoint.elevation }}, "{{ refpoint.url }}", "/api/v1/refpoints/{{ refpoint.id }}/");
|
|
|
|
|
|
+ point_list[{{ id }}] = new Array("{{ refpoint.name|escapejs }}", {{ refpoint.distance }}, {{ refpoint.cap }}, {{ refpoint.elevation }}, "{{ refpoint.url }}", "/api/v1/refpoints/{{ refpoint.id }}/");
|
|
{% endfor %}
|
|
{% endfor %}
|
|
|
|
|
|
ref_points = new Array();
|
|
ref_points = new Array();
|
|
{% for ref in panorama.references_data %}
|
|
{% for ref in panorama.references_data %}
|
|
- ref_points["{{ ref.name }}"] = {url: "/api/v1/references/{{ ref.id }}/", x: {{ ref.x }}, y: {{ ref.y }}, cap: {{ ref.cap }}, ele: {{ ref.elevation }}};
|
|
|
|
|
|
+ ref_points["{{ ref.name|escapejs }}"] = {url: "/api/v1/references/{{ ref.id }}/", x: {{ ref.x }}, y: {{ ref.y }}, cap: {{ ref.cap }}, ele: {{ ref.elevation }}};
|
|
{% endfor %}
|
|
{% endfor %}
|
|
</script>
|
|
</script>
|
|
<link type="image/x-icon" rel="shortcut icon" href="{% static "panorama/img/tsf.png" %}"/>
|
|
<link type="image/x-icon" rel="shortcut icon" href="{% static "panorama/img/tsf.png" %}"/>
|