Commit 9dde1b8c authored by Baptiste Jonglez's avatar Baptiste Jonglez

Fix the ability to add refpoints from panorama (fix 89107599)

parent 89107599
......@@ -891,7 +891,7 @@ function insert_ref_point(el, x, y) {
}
}
if (!found) {
alert('unknown ref_point: '+label);
alert('unknown ref_point: ' + selected_label);
}
// Then push the modif
......
......@@ -189,7 +189,7 @@ style="padding-left:0px"
<p id="info"></p>
<p id="insert"><select id="sel_point" name="known_points">
{% for id, refpoint in panorama.refpoints_data %}
<option>{{ refpoint.name }} ({{ refpoint.distance|distance }})</option>
<option value="{{ refpoint.name }}">{{ refpoint.name }} ({{ refpoint.distance|distance }})</option>
{% endfor %}
</select>
<input type="button" id="do-insert" class="btn btn-primary btn-sm" value={% trans "Insert" %} />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment