mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-14 17:52:55 +00:00
styled view on osm link.
This commit is contained in:
@@ -97,10 +97,12 @@ iD.ui.TagEditor = function(context, entity) {
|
||||
|
||||
// Don't add for created entities
|
||||
if (entity.osmId() > 0) {
|
||||
editorwrap.append('a')
|
||||
.attr('href', 'http://www.openstreetmap.org/browse/' + entity.type + '/' + entity.osmId())
|
||||
.attr('target', '_blank')
|
||||
.text(t('inspector.view_on_osm'));
|
||||
tageditorpreset.append('div')
|
||||
.attr('class','inspector-inner')
|
||||
.append('a')
|
||||
.attr('href', 'http://www.openstreetmap.org/browse/' + entity.type + '/' + entity.osmId())
|
||||
.attr('target', '_blank')
|
||||
.text(t('inspector.view_on_osm'));
|
||||
}
|
||||
|
||||
tageditor.tags(tags);
|
||||
|
||||
Reference in New Issue
Block a user