Skip to content

Commit

Permalink
change http to https
Browse files Browse the repository at this point in the history
change of all http:// URIs in js/id folder to https://.

(closes #2960)
  • Loading branch information
kepta committed Feb 3, 2016
1 parent 2e83ed2 commit 69262b0
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion js/id/renderer/background_source.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ iD.BackgroundSource.Bing = function(data, dispatch) {
};

bing.logo = 'bing_maps.png';
bing.terms_url = 'http://opengeodata.org/microsoft-imagery-details';
bing.terms_url = 'https://blog.openstreetmap.org/2010/11/30/microsoft-imagery-details';

return bing;
};
Expand Down
2 changes: 1 addition & 1 deletion js/id/renderer/mapillary_layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ iD.MapillaryLayer = function (context) {
.attr('src', 'https://d1cuyjsrcm0gby.cloudfront.net/' + image.key + '/thumb-320.jpg');

div.selectAll('a')
.attr('href', 'http://mapillary.com/map/im/' + image.key);
.attr('href', 'https://mapillary.com/map/im/' + image.key);
}

function hide() {
Expand Down
2 changes: 1 addition & 1 deletion js/id/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ iD.ui = function(context) {
.append('a')
.attr('target', '_blank')
.attr('tabindex', -1)
.attr('href', 'http://github.com/openstreetmap/iD')
.attr('href', 'https://github.com/openstreetmap/iD')
.text(iD.version);

var issueLinks = aboutList.append('li');
Expand Down
2 changes: 1 addition & 1 deletion js/id/ui/feature_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ iD.ui.FeatureList = function(context) {

function geocode() {
var searchVal = encodeURIComponent(search.property('value'));
d3.json('http://nominatim.openstreetmap.org/search/' + searchVal + '?limit=10&format=json', function(err, resp) {
d3.json('https://nominatim.openstreetmap.org/search/' + searchVal + '?limit=10&format=json', function(err, resp) {
geocodeResults = resp || [];
drawList();
});
Expand Down
4 changes: 2 additions & 2 deletions js/id/ui/preset/wikipedia.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ iD.ui.preset.wikipedia = function(field, context) {
anchor = anchor.replace(/ /g, '_');
}
}
link.attr('href', 'http://' + m[1] + '.wikipedia.org/wiki/' +
link.attr('href', 'https://' + m[1] + '.wikipedia.org/wiki/' +
m[2].replace(/ /g, '_') + (anchor ? ('#' + anchor) : ''));

// unrecognized value format
} else {
title.value(value);
link.attr('href', 'http://en.wikipedia.org/wiki/Special:Search?search=' + value);
link.attr('href', 'https://en.wikipedia.org/wiki/Special:Search?search=' + value);
}
};

Expand Down
2 changes: 1 addition & 1 deletion js/id/ui/tag_reference.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ iD.ui.TagReference = function(tag, context) {
body
.append('a')
.attr('target', '_blank')
.attr('href', 'http://wiki.openstreetmap.org/wiki/' + docs.title)
.attr('href', 'https://wiki.openstreetmap.org/wiki/' + docs.title)
.call(iD.svg.Icon('#icon-out-link', 'inline'))
.append('span')
.text(t('inspector.reference'));
Expand Down
2 changes: 1 addition & 1 deletion test/spec/ui/preset/wikipedia.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('iD.ui.preset.wikipedia', function() {
wikipedia.tags({wikipedia: 'en:Title'});
expect(selection.selectAll('.wiki-lang').value()).to.equal('English');
expect(selection.selectAll('.wiki-title').value()).to.equal('Title');
expect(selection.selectAll('.wiki-link').attr('href')).to.equal('http://en.wikipedia.org/wiki/Title');
expect(selection.selectAll('.wiki-link').attr('href')).to.equal('https://en.wikipedia.org/wiki/Title');
});

it('sets a new value', function() {
Expand Down

0 comments on commit 69262b0

Please sign in to comment.