cleaning up presets.

This commit is contained in:
Saman Bemel-Benrud
2013-03-11 20:32:12 -04:00
parent a56c67da50
commit 5e35bc87d7
9 changed files with 41 additions and 39 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ iD.ui.Geocoder = function(context) {
var gcForm = selection.append('form');
var inputNode = gcForm.attr('class', 'content fillD map-overlay hide')
var inputNode = gcForm.attr('class', 'content fillL map-overlay hide')
.append('input')
.attr({ type: 'text', placeholder: t('geocoder.placeholder') })
.attr('tabindex', 1)
+1 -1
View File
@@ -39,7 +39,7 @@ iD.ui.preset = function(context) {
wrap.append('div')
.attr('class', 'col3 preset-label')
.append('label')
.append('h4')
.attr('for', 'input-' + d.key)
.text(d.title || d.key);
+4 -4
View File
@@ -40,13 +40,13 @@ iD.ui.TagEditor = function(context) {
var editorwrap = selection.append('div')
.attr('class', 'tag-wrap inspector-body inspector-body-' + entity.geometry(context.graph()));
var headerwrap = editorwrap.append('div').attr('class','col12 inspector-inner head');
var headerwrap = editorwrap.append('div').attr('class','col12 head');
var typewrap = headerwrap.append('div')
.attr('class','col3 type');
var typebutton = typewrap.append('button')
.attr('class','col12')
.attr('class','col12 grid-entry')
.on('click', function() {
event.choose();
});
@@ -57,10 +57,10 @@ iD.ui.TagEditor = function(context) {
typebutton.node().focus();
var namewrap = headerwrap.append('div')
.attr('class', 'name col9');
.attr('class', 'name preset-section inspector-inner col9');
typebutton.append('span')
.attr('class','label')
.attr('class','h4')
.text(preset.name);
namewrap.append('h4').text(t('inspector.name'));