bring set position UI back
This commit is contained in:
parent
c546f007c1
commit
f07ceed450
2 changed files with 7 additions and 0 deletions
|
@ -1579,6 +1579,7 @@ c3nav = {
|
||||||
}, 'autoPanPaddingTopLeft', 'autoPanPaddingBottomRight'));
|
}, 'autoPanPaddingTopLeft', 'autoPanPaddingBottomRight'));
|
||||||
var buttons = $('#location-popup-buttons').clone();
|
var buttons = $('#location-popup-buttons').clone();
|
||||||
buttons.find('.report').attr('href', '/report/l/' + String(data.id) + '/');
|
buttons.find('.report').attr('href', '/report/l/' + String(data.id) + '/');
|
||||||
|
buttons.find('.set-position').attr('href', '/positions/set/' + name + '/');
|
||||||
newpopup.setLatLng(latlng).setContent(c3nav._build_location_html(data) + buttons.html());
|
newpopup.setLatLng(latlng).setContent(c3nav._build_location_html(data) + buttons.html());
|
||||||
c3nav._click_anywhere_popup = newpopup;
|
c3nav._click_anywhere_popup = newpopup;
|
||||||
newpopup.on('remove', function () {
|
newpopup.on('remove', function () {
|
||||||
|
|
|
@ -86,6 +86,12 @@
|
||||||
{% trans 'Report issue' %}
|
{% trans 'Report issue' %}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="buttons position-buttons">
|
||||||
|
<a class="button button-clear set-position">
|
||||||
|
<i class="material-symbols">my_location</i>
|
||||||
|
{% trans 'Set my position' %}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section class="share-ui">
|
<section class="share-ui">
|
||||||
<h3>{% trans 'Share' %}</h3>
|
<h3>{% trans 'Share' %}</h3>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue