Add city address field

This commit is contained in:
Ansis Brammanis
2013-03-04 16:12:19 -05:00
parent c7e4977bcb
commit 01688f6528
2 changed files with 15 additions and 1 deletions
+6
View File
@@ -703,10 +703,16 @@ div.combobox {
.preset-input .addr-number {
width: 20%;
border-right: none;
border-bottom: none;
}
.preset-input .addr-street {
width: 80%;
border-bottom: none;
}
.preset-input .addr-city {
width:100%;
}
/* tag editor */
+9 -1
View File
@@ -59,11 +59,19 @@ iD.ui.preset.address = function(context) {
streetwrap.append('input')
.property('type', 'text')
.attr('placeholder', 'Oak Street')
.attr('placeholder', 'Street')
.attr('class', 'addr-street')
.on('blur', change)
.on('change', change);
selection.append('input')
.property('type', 'text')
.attr('placeholder', 'City')
.attr('class', 'addr-city')
.datum({ 'key': 'addr:city' })
.on('blur', change)
.on('change', change);
streetwrap.call(d3.combobox().data(getStreets()));
}