Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit fbe5e85

Browse files
author
Pierre GIRAUD
committed
Merge pull request #390 from pgiraud/josm_ignore_tags
Don't import task boundary in JOSM
2 parents 0da4c17 + cef02f2 commit fbe5e85

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

osmtm/static/js/project.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -422,17 +422,11 @@ osmtm.project = (function() {
422422
protocol: 'lbrt'
423423
});
424424
$.ajax({
425-
url: 'http://127.0.0.1:8111/import',
426-
data: {
427-
url: task_osm_url
428-
},
425+
url: url,
429426
complete: function(t) {
430427
if (t.status != 200) {
431428
alert("JOSM remote control did not respond. Do you have JOSM running and configured to be controlled remotely?");
432429
} else {
433-
$.ajax({
434-
url: url
435-
});
436430
if (typeof imagery_url != "undefined" && imagery_url !== '') {
437431
$.ajax({
438432
url: 'http://127.0.0.1:8111/imagery',
@@ -528,6 +522,7 @@ osmtm.project = (function() {
528522
function setPreferedEditor() {
529523
if (osmtm.prefered_editor !== '') {
530524
$('#prefered_editor').text($('#' + osmtm.prefered_editor + ' a').text());
525+
$('#josm_task_boundary_tip').toggle(osmtm.prefered_editor == 'josm');
531526
}
532527
}
533528

osmtm/templates/task.editors.mako

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@
1717
<li id="wp"><a role="menuitem">Walking Papers</a></li>
1818
</ul>
1919
</div>
20+
<div id="josm_task_boundary_tip" class="help-block small text-left">
21+
<em>
22+
<i class="glyphicon glyphicon-info-sign"></i>
23+
<%
24+
link_to_gpx_text = _('.gpx file')
25+
link_to_gpx = '<a href="%s" target="_blank">%s</a>' % (
26+
request.route_url('task_gpx', project=task.project_id, task=task.id),
27+
link_to_gpx_text)
28+
%>
29+
${_('Tip: Download the following ${task_gpx_link} and load it in JOSM in order to see the current task boundary',
30+
mapping={'task_gpx_link': link_to_gpx}) | n}
31+
</em>
32+
</div>
2033
</div>
2134
<script>
2235
osmtm.prefered_editor = "${prefered_editor}";

0 commit comments

Comments
 (0)