diff --git a/css/app.css b/css/app.css index c19af4367..10ebb095a 100644 --- a/css/app.css +++ b/css/app.css @@ -702,7 +702,7 @@ div.typeahead a:first-child { .notice { position:absolute; - top:60px; + top:0px; left:70px; width:250px; height:50px; diff --git a/js/id/modes/add_area.js b/js/id/modes/add_area.js index d604e0072..e3164b58d 100644 --- a/js/id/modes/add_area.js +++ b/js/id/modes/add_area.js @@ -18,7 +18,7 @@ iD.modes.AddArea = function() { map.surface.on('click.addarea', function() { var datum = d3.select(d3.event.target).datum() || {}, - way = iD.Way({tags: { building: 'yes', area: 'yes' }}); + way = iD.Way({tags: { area: 'yes' }}); if (datum.type === 'node') { // start from an existing node diff --git a/js/id/renderer/map.js b/js/id/renderer/map.js index af99cc057..5d03236ed 100644 --- a/js/id/renderer/map.js +++ b/js/id/renderer/map.js @@ -56,7 +56,7 @@ iD.Map = function() { alength = arrow.node().getComputedTextLength(); arrow.remove(); - notice = iD.notice(d3.select('body') + notice = iD.notice(supersurface .append('div') .attr('class', 'notice')); diff --git a/js/id/ui/inspector.js b/js/id/ui/inspector.js index b8c834cc8..741138a3c 100644 --- a/js/id/ui/inspector.js +++ b/js/id/ui/inspector.js @@ -106,25 +106,29 @@ iD.Inspector = function() { .on('keydown.push-more', pushMore) .each(bindTypeahead); - removeBtn = row.append('button') + var removeBtn = row.append('button') + .attr('tabindex', -1) .attr('class','remove minor') .on('click', removeTag); removeBtn.append('span').attr('class', 'icon remove'); - helpBtn = row.append('button').attr('class', 'tag-help minor').append('a') - .attr('target', '_blank') + var helpBtn = row.append('button') .attr('tabindex', -1) - .attr('href', function(d) { - return 'http://taginfo.openstreetmap.org/keys/' + d.key; - }); + .attr('class', 'tag-help minor') + .append('a') + .attr('tabindex', -1) + .attr('target', '_blank') + .attr('href', function(d) { + return 'http://taginfo.openstreetmap.org/keys/' + d.key; + }); helpBtn.append('span').attr('class', 'icon inspect'); } function grabtags() { var grabbed = []; - function grab(d) { grabbed.push(d); } + function grab(d) { if (d.key !== '') grabbed.push(d); } inspectorwrap.selectAll('li').each(grab); return grabbed; }