Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions osmtm/static/js/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,15 +435,21 @@ osmtm.project = (function() {
alert("JOSM remote control did not respond. Do you have JOSM running and configured to be controlled remotely?");
} else {
if (typeof imagery_url != "undefined" && imagery_url !== '') {
$.ajax({
url: 'http://127.0.0.1:8111/imagery',
data: {
title: "Tasking Manager - #" + project_id,
type: imagery_url.toLowerCase().substring(0,3),
url: imagery_url
}
});
var data = {
title: "Tasking Manager - #" + project_id,
type: imagery_url.toLowerCase().substring(0, 3),
url: imagery_url
};
} else {
var data = {
type: 'bing',
url: 'http://www.bing.com/maps/'
};
}
$.ajax({
url: 'http://127.0.0.1:8111/imagery',
data: data
});
}
}
});
Expand Down
5 changes: 5 additions & 0 deletions osmtm/templates/imagery.mako
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,9 @@ You have already acknowledged the terms of this license.</span>
% endif
</p>
% endif
% else:
<p>
Bing
</p>

% endif
2 changes: 0 additions & 2 deletions osmtm/templates/project.instructions.mako
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,12 @@ import markdown
${project.changeset_comment}
</dd>
% endif
% if project.imagery:
<dt>
${_('Imagery')}
</dt>
<dd>
<%include file="imagery.mako" />
</dd>
% endif
</dl>
% if project.josm_preset:
<p >
Expand Down