mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
Change source field to semiCombo, let users pick common source types
This commit is contained in:
+1
-3
@@ -1226,9 +1226,7 @@ en:
|
||||
label: People Served
|
||||
source:
|
||||
# source=*
|
||||
label: Source
|
||||
# source field placeholder
|
||||
placeholder: 'survey, local knowledge, aerial imagery'
|
||||
label: Sources
|
||||
sport:
|
||||
# sport=*
|
||||
label: Sports
|
||||
|
||||
@@ -1635,11 +1635,17 @@
|
||||
},
|
||||
"source": {
|
||||
"key": "source",
|
||||
"type": "text",
|
||||
"type": "semiCombo",
|
||||
"icon": "source",
|
||||
"universal": true,
|
||||
"label": "Source",
|
||||
"placeholder": "survey, local knowledge, aerial imagery"
|
||||
"label": "Sources",
|
||||
"options": [
|
||||
"survey",
|
||||
"local knowledge",
|
||||
"gps",
|
||||
"aerial imagery",
|
||||
"streetlevel imagery"
|
||||
]
|
||||
},
|
||||
"sport_ice": {
|
||||
"key": "sport",
|
||||
|
||||
@@ -1,8 +1,14 @@
|
||||
{
|
||||
"key": "source",
|
||||
"type": "text",
|
||||
"type": "semiCombo",
|
||||
"icon": "source",
|
||||
"universal": true,
|
||||
"label": "Source",
|
||||
"placeholder": "survey, local knowledge, aerial imagery"
|
||||
"label": "Sources",
|
||||
"options": [
|
||||
"survey",
|
||||
"local knowledge",
|
||||
"gps",
|
||||
"aerial imagery",
|
||||
"streetlevel imagery"
|
||||
]
|
||||
}
|
||||
|
||||
Vendored
+1
-2
@@ -2100,8 +2100,7 @@
|
||||
"label": "Type"
|
||||
},
|
||||
"source": {
|
||||
"label": "Source",
|
||||
"placeholder": "survey, local knowledge, aerial imagery"
|
||||
"label": "Sources"
|
||||
},
|
||||
"sport_ice": {
|
||||
"label": "Sports"
|
||||
|
||||
@@ -103,7 +103,9 @@ export function uiFormFields(context) {
|
||||
var field = d.field;
|
||||
field.show = true;
|
||||
render(selection);
|
||||
field.focus();
|
||||
if (field.type !== 'semiCombo' && field.type !== 'multiCombo') {
|
||||
field.focus();
|
||||
}
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user