mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-05 14:38:05 +02:00
Extract iD.ui.Attribution
This commit is contained in:
+3
-9
@@ -90,15 +90,9 @@ iD.ui = function(context) {
|
||||
.attr('href', 'http://github.com/systemed/iD/issues')
|
||||
.text(t('report_a_bug'));
|
||||
|
||||
var imagery = linkList.append('li')
|
||||
.attr('id', 'attribution');
|
||||
|
||||
imagery.append('span')
|
||||
.text('imagery');
|
||||
|
||||
imagery
|
||||
.append('span')
|
||||
.attr('class', 'provided-by');
|
||||
linkList.append('li')
|
||||
.attr('id', 'attribution')
|
||||
.call(iD.ui.Attribution(context));
|
||||
|
||||
linkList.append('li')
|
||||
.attr('class', 'source-switch')
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
iD.ui.Attribution = function(context) {
|
||||
return function(selection) {
|
||||
selection.append('span')
|
||||
.text('imagery');
|
||||
|
||||
selection
|
||||
.append('span')
|
||||
.attr('class', 'provided-by');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user