mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-25 09:34:04 +02:00
Add city address field
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user