diff --git a/index.html b/index.html index 27149eeb6..c7e5d6f40 100644 --- a/index.html +++ b/index.html @@ -93,7 +93,7 @@ - + diff --git a/js/id/ui/inspector.js b/js/id/ui/inspector.js index 4224ace63..dad764670 100644 --- a/js/id/ui/inspector.js +++ b/js/id/ui/inspector.js @@ -41,7 +41,7 @@ iD.ui.Inspector = function(context, entity) { .append('div') .classed('pane tag-pane', true); - var presetGrid = iD.ui.PresetGrid(context, entity) + var presetList = iD.ui.PresetList(context, entity) .autofocus(newFeature) .on('close', browse) .on('choose', function(preset) { @@ -64,18 +64,18 @@ iD.ui.Inspector = function(context, entity) { .transition() .style('right', right); - presetGrid + presetList .current(preset) .autofocus(true); - presetLayer.call(presetGrid); + presetLayer.call(presetList); }); var tagless = _.without(Object.keys(entity.tags), 'area').length === 0; if (tagless) { panewrap.style('right', '-100%'); - presetLayer.call(presetGrid); + presetLayer.call(presetList); } else { panewrap.style('right', '-0%'); tagLayer.call(tagEditor); diff --git a/js/id/ui/preset_grid.js b/js/id/ui/preset_list.js similarity index 96% rename from js/id/ui/preset_grid.js rename to js/id/ui/preset_list.js index f28ced38f..32f209b8c 100644 --- a/js/id/ui/preset_grid.js +++ b/js/id/ui/preset_list.js @@ -1,9 +1,9 @@ -iD.ui.PresetGrid = function(context, entity) { +iD.ui.PresetList = function(context, entity) { var event = d3.dispatch('choose', 'close'), presets, current, autofocus = false; - function presetGrid(selection) { + function presetList(selection) { var geometry = entity.geometry(context.graph()); presets = context.presets().matchGeometry(geometry); @@ -208,17 +208,17 @@ iD.ui.PresetGrid = function(context, entity) { return item; } - presetGrid.autofocus = function(_) { + presetList.autofocus = function(_) { if (!arguments.length) return autofocus; autofocus = _; - return presetGrid; + return presetList; }; - presetGrid.current = function(_) { + presetList.current = function(_) { if (!arguments.length) return current; current = _; - return presetGrid; + return presetList; }; - return d3.rebind(presetGrid, event, 'on'); + return d3.rebind(presetList, event, 'on'); }; diff --git a/test/index.html b/test/index.html index 6a7ec0e2a..22dc06370 100644 --- a/test/index.html +++ b/test/index.html @@ -89,7 +89,7 @@ - +