diff --git a/osmtm/static/js/project.js b/osmtm/static/js/project.js index 5bbf6daf..fe9c3825 100644 --- a/osmtm/static/js/project.js +++ b/osmtm/static/js/project.js @@ -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 + }); } } }); diff --git a/osmtm/templates/imagery.mako b/osmtm/templates/imagery.mako index 2e04c9ae..b17223c9 100644 --- a/osmtm/templates/imagery.mako +++ b/osmtm/templates/imagery.mako @@ -53,4 +53,9 @@ You have already acknowledged the terms of this license. % endif
% endif +% else: ++ Bing +
+ % endif diff --git a/osmtm/templates/project.instructions.mako b/osmtm/templates/project.instructions.mako index f2ca5e62..f2b22dcb 100644 --- a/osmtm/templates/project.instructions.mako +++ b/osmtm/templates/project.instructions.mako @@ -29,14 +29,12 @@ import markdown ${project.changeset_comment} % endif - % if project.imagery: