diff --git a/css/app.css b/css/app.css
index 5c7d1b2fe..6940ad0f7 100644
--- a/css/app.css
+++ b/css/app.css
@@ -1346,7 +1346,7 @@ div.combobox {
/* tag editor */
-.inspector-inner.additional-tags {
+.raw-tag-editor {
border-top: 1px solid #ccc;
}
@@ -1466,7 +1466,7 @@ div.combobox {
width: 100%;
}
-.additional-tags .tag-reference-body {
+.raw-tag-editor .tag-reference-body {
border-bottom: 1px solid #ccc;
float: left;
width: 100%;
diff --git a/index.html b/index.html
index f838354a4..c96bf4069 100644
--- a/index.html
+++ b/index.html
@@ -91,7 +91,7 @@
-
+
diff --git a/js/id/ui/entity_editor.js b/js/id/ui/entity_editor.js
index 4c8888dd1..8ad7939a2 100644
--- a/js/id/ui/entity_editor.js
+++ b/js/id/ui/entity_editor.js
@@ -6,7 +6,7 @@ iD.ui.EntityEditor = function(context, entity) {
preset,
selection_,
presetUI,
- tagList;
+ rawTagEditor;
function update() {
var entity = context.hasEntity(id);
@@ -22,7 +22,7 @@ iD.ui.EntityEditor = function(context, entity) {
}
presetUI.change(tags);
- tagList.tags(tags);
+ rawTagEditor.tags(tags);
}
function entityEditor(selection, newpreset) {
@@ -77,7 +77,7 @@ iD.ui.EntityEditor = function(context, entity) {
.on('change', changeTags)
.on('close', event.close);
- tagList = iD.ui.Taglist(context, entity)
+ rawTagEditor = iD.ui.RawTagEditor(context, entity)
.on('change', changeTags);
var tageditorpreset = editorwrap.append('div')
@@ -85,8 +85,8 @@ iD.ui.EntityEditor = function(context, entity) {
.call(presetUI);
editorwrap.append('div')
- .attr('class', 'inspector-inner col12 additional-tags')
- .call(tagList, preset.id === 'other');
+ .attr('class', 'inspector-inner raw-tag-editor col12')
+ .call(rawTagEditor, preset.id === 'other');
if (!entity.isNew()) {
var osmLink = tageditorpreset.append('div')
@@ -102,7 +102,7 @@ iD.ui.EntityEditor = function(context, entity) {
}
presetUI.change(tags);
- tagList.tags(tags);
+ rawTagEditor.tags(tags);
changeTags();
diff --git a/js/id/ui/taglist.js b/js/id/ui/raw_tag_editor.js
similarity index 87%
rename from js/id/ui/taglist.js
rename to js/id/ui/raw_tag_editor.js
index f8d0433f9..bc031dac5 100644
--- a/js/id/ui/taglist.js
+++ b/js/id/ui/raw_tag_editor.js
@@ -1,25 +1,25 @@
-iD.ui.Taglist = function(context, entity) {
+iD.ui.RawTagEditor = function(context, entity) {
var event = d3.dispatch('change'),
taginfo = iD.taginfo(),
collapsebutton,
list;
- function taglist(selection, other) {
+ function rawTagEditor(selection, other) {
collapsebutton = selection.append('a')
.attr('href','#')
.attr('class','hide-toggle')
.text(t('inspector.all_tags'))
.on('click', function() {
- iD.ui.Taglist.expanded = wrap.classed('hide');
- collapsebutton.classed('expanded', iD.ui.Taglist.expanded);
- wrap.call(iD.ui.Toggle(iD.ui.Taglist.expanded));
+ iD.ui.RawTagEditor.expanded = wrap.classed('hide');
+ collapsebutton.classed('expanded', iD.ui.RawTagEditor.expanded);
+ wrap.call(iD.ui.Toggle(iD.ui.RawTagEditor.expanded));
selection.node().parentNode.scrollTop += 200;
})
- .classed('expanded', iD.ui.Taglist.expanded || other);
+ .classed('expanded', iD.ui.RawTagEditor.expanded || other);
var wrap = selection.append('div')
- .classed('hide', !iD.ui.Taglist.expanded && !other);
+ .classed('hide', !iD.ui.RawTagEditor.expanded && !other);
list = wrap.append('ul')
.attr('class', 'tag-list');
@@ -72,7 +72,7 @@ iD.ui.Taglist = function(context, entity) {
function keyChange(d) {
d.key = this.value;
- event.change(taglist.tags());
+ event.change(rawTagEditor.tags());
}
row.append('div')
@@ -88,7 +88,7 @@ iD.ui.Taglist = function(context, entity) {
function valueChange(d) {
d.value = this.value;
- event.change(taglist.tags());
+ event.change(rawTagEditor.tags());
}
row.each(bindTypeahead);
@@ -162,21 +162,21 @@ iD.ui.Taglist = function(context, entity) {
}
function addTag() {
- var tags = taglist.tags();
+ var tags = rawTagEditor.tags();
tags[''] = '';
drawTags(tags);
list.selectAll('li:last-child input.key').node().focus();
}
function removeTag(d) {
- var tags = taglist.tags();
+ var tags = rawTagEditor.tags();
tags[d.key] = '';
event.change(tags);
delete tags[d.key];
drawTags(tags);
}
- taglist.tags = function(tags) {
+ rawTagEditor.tags = function(tags) {
if (!arguments.length) {
tags = {};
list.selectAll('li').each(function() {
@@ -191,5 +191,5 @@ iD.ui.Taglist = function(context, entity) {
}
};
- return d3.rebind(taglist, event, 'on');
+ return d3.rebind(rawTagEditor, event, 'on');
};
diff --git a/test/index.html b/test/index.html
index 8e6ac24b6..78550e549 100644
--- a/test/index.html
+++ b/test/index.html
@@ -88,7 +88,7 @@
-
+
@@ -226,7 +226,7 @@
-
+
diff --git a/test/index_packaged.html b/test/index_packaged.html
index f4a1a9145..cf745ce5b 100644
--- a/test/index_packaged.html
+++ b/test/index_packaged.html
@@ -69,7 +69,7 @@
-
+
diff --git a/test/spec/ui/taglist.js b/test/spec/ui/raw_tag_editor.js
similarity index 96%
rename from test/spec/ui/taglist.js
rename to test/spec/ui/raw_tag_editor.js
index de993ac07..2a7bf500e 100644
--- a/test/spec/ui/taglist.js
+++ b/test/spec/ui/raw_tag_editor.js
@@ -1,10 +1,10 @@
-describe('iD.ui.Taglist', function() {
+describe('iD.ui.RawTagEditor', function() {
var taglist, element,
tags = {highway: 'residential'},
entity, context;
function render() {
- taglist = iD.ui.Taglist(context, entity);
+ taglist = iD.ui.RawTagEditor(context, entity);
element = d3.select('body')
.append('div')
.call(taglist);