diff --git a/js/id/ui/inspector.js b/js/id/ui/inspector.js index c8c9d502c..5f7f7de6d 100644 --- a/js/id/ui/inspector.js +++ b/js/id/ui/inspector.js @@ -48,7 +48,7 @@ iD.Inspector = function() { var inspectorwrap = selection .append('ul').attr('class', 'inspector-inner tag-wrap fillL2'); - inspectorwrap.append('h4').text('Edit tags') + inspectorwrap.append('h4').text('Edit tags'); inspectorwrap .data(['tag', 'value', '']) diff --git a/js/id/ui/layerswitcher.js b/js/id/ui/layerswitcher.js index e5f1a8b32..f79ab169c 100644 --- a/js/id/ui/layerswitcher.js +++ b/js/id/ui/layerswitcher.js @@ -48,36 +48,36 @@ iD.layerswitcher = function(map) { var opa = content .append('div') - .attr('class', 'opacity-options-wrapper fillL2') + .attr('class', 'opacity-options-wrapper fillL2'); - opa.append('h4').text('Layers') + opa.append('h4').text('Layers'); - opa.append('ul') - .attr('class', 'opacity-options') - .selectAll('div.opacity') - .data(opacities) - .enter() - .append('li') - .attr('data-original-title', function(d) { - return (d * 100) + "% opacity"; - }) - .on('click.set-opacity', function(d) { - d3.select('#tile-g') - .transition() - .style('opacity', d) - .attr('data-opacity', d); - d3.selectAll('.opacity-options li') - .classed('selected', false); - d3.select(this) - .classed('selected', true); - }) - .html("
") - .call(bootstrap.tooltip().placement('top')) - .append('div') - .attr('class', 'opacity') - .style('opacity', function(d) { - return d; - }); + opa.append('ul') + .attr('class', 'opacity-options') + .selectAll('div.opacity') + .data(opacities) + .enter() + .append('li') + .attr('data-original-title', function(d) { + return (d * 100) + "% opacity"; + }) + .on('click.set-opacity', function(d) { + d3.select('#tile-g') + .transition() + .style('opacity', d) + .attr('data-opacity', d); + d3.selectAll('.opacity-options li') + .classed('selected', false); + d3.select(this) + .classed('selected', true); + }) + .html("
") + .call(bootstrap.tooltip().placement('top')) + .append('div') + .attr('class', 'opacity') + .style('opacity', function(d) { + return d; + }); // Make sure there is an active selection by default d3.select('.opacity-options li').classed('selected', true);