Browse Source

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

Baptiste Jonglez 6 years ago
parent
commit
9dde1b8c27
2 changed files with 2 additions and 2 deletions
  1. 1 1
      panorama/static/panorama/js/pano.js
  2. 1 1
      panorama/templates/panorama/view.html

+ 1 - 1
panorama/static/panorama/js/pano.js

@@ -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

+ 1 - 1
panorama/templates/panorama/view.html

@@ -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" %} />