mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 22:03:37 +02:00
Merge branch 'master' of github.com:systemed/iD
This commit is contained in:
@@ -673,7 +673,6 @@ text.pointlabel {
|
||||
|
||||
text.point {
|
||||
font-size: 10px;
|
||||
baseline-shift: 2px;
|
||||
}
|
||||
|
||||
/* Cursors */
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
iD.Connection = function(context) {
|
||||
|
||||
var event = d3.dispatch('auth', 'load'),
|
||||
url = 'http://api06.dev.openstreetmap.org',
|
||||
url = 'http://www.openstreetmap.org',
|
||||
connection = {},
|
||||
user = {},
|
||||
keys,
|
||||
|
||||
+3
-3
@@ -41,7 +41,7 @@ iD.svg.Labels = function(projection) {
|
||||
});
|
||||
|
||||
var pointOffsets = [
|
||||
[15, 3, 'start'], // right
|
||||
[15, 2, 'start'], // right
|
||||
[10, 0, 'start'], // unused right now
|
||||
[-15, 0, 'end']
|
||||
];
|
||||
@@ -126,11 +126,11 @@ iD.svg.Labels = function(projection) {
|
||||
}
|
||||
return x;
|
||||
},
|
||||
'y': function(d, i) { return labels[i].y - labels[i].height + 1 - 2; },
|
||||
'y': function(d, i) { return labels[i].y - labels[i].height + 1; },
|
||||
'rx': 3,
|
||||
'ry': 3,
|
||||
'width': function(d, i) { return textWidth(name(d), labels[i].height) + 4; },
|
||||
'height': function(d, i) { return labels[i].height + 4; },
|
||||
'height': function(d, i) { return labels[i].height + 2; },
|
||||
'fill': 'white'
|
||||
});
|
||||
|
||||
|
||||
@@ -18,8 +18,8 @@ iD.ui.SourceSwitch = function(context) {
|
||||
return function(selection) {
|
||||
selection.append('a')
|
||||
.attr('href', '#')
|
||||
.text(t('source_switch.dev'))
|
||||
.classed('live', false)
|
||||
.text(t('source_switch.live'))
|
||||
.classed('live', true)
|
||||
.on('click', click);
|
||||
};
|
||||
};
|
||||
|
||||
@@ -24,13 +24,13 @@ describe('iD.Connection', function () {
|
||||
|
||||
describe('#changesetUrl', function() {
|
||||
it('provides a changeset url', function() {
|
||||
expect(c.changesetUrl(2)).to.eql('http://api06.dev.openstreetmap.org/browse/changeset/2');
|
||||
expect(c.changesetUrl(2)).to.eql('http://www.openstreetmap.org/browse/changeset/2');
|
||||
});
|
||||
});
|
||||
|
||||
describe('#userUrl', function() {
|
||||
it('provides a user url', function() {
|
||||
expect(c.userUrl('bob')).to.eql('http://api06.dev.openstreetmap.org/user/bob');
|
||||
expect(c.userUrl('bob')).to.eql('http://www.openstreetmap.org/user/bob');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user