mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
Extract iD.ui.Attribution
This commit is contained in:
@@ -57,6 +57,7 @@
|
||||
<script src="js/id/svg/labels.js"></script>
|
||||
|
||||
<script src="js/id/ui.js"></script>
|
||||
<script src='js/id/ui/attribution.js'></script>
|
||||
<script src='js/id/ui/radial_menu.js'></script>
|
||||
<script src='js/id/ui/inspector.js'></script>
|
||||
<script src='js/id/ui/modal.js'></script>
|
||||
|
||||
12
js/id/ui.js
12
js/id/ui.js
@@ -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')
|
||||
|
||||
10
js/id/ui/attribution.js
Normal file
10
js/id/ui/attribution.js
Normal file
@@ -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