mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-21 19:26:41 +02:00
Add caseSensitive option for combofields, use for source=*
(closes #4558)
This commit is contained in:
@@ -1738,6 +1738,7 @@
|
||||
"universal": true,
|
||||
"label": "Sources",
|
||||
"snake_case": false,
|
||||
"caseSensitive": true,
|
||||
"options": [
|
||||
"survey",
|
||||
"local knowledge",
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
"universal": true,
|
||||
"label": "Sources",
|
||||
"snake_case": false,
|
||||
"caseSensitive": true,
|
||||
"options": [
|
||||
"survey",
|
||||
"local knowledge",
|
||||
|
||||
@@ -115,6 +115,11 @@
|
||||
"description": "If true, replace spaces with underscores in the tag value (combo type fields)",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"caseSensitive": {
|
||||
"description": "If true, allow case sensitive field values (combo type fields)",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
|
||||
@@ -37,8 +37,10 @@ export function uiFieldCombo(field, context) {
|
||||
optstrings = field.strings && field.strings.options,
|
||||
optarray = field.options,
|
||||
snake_case = (field.snake_case || (field.snake_case === undefined)),
|
||||
caseSensitive = field.caseSensitive,
|
||||
combobox = d3_combobox()
|
||||
.container(context.container())
|
||||
.caseSensitive(caseSensitive)
|
||||
.minItems(isMulti || isSemi ? 1 : 2),
|
||||
comboData = [],
|
||||
multiData = [],
|
||||
|
||||
Reference in New Issue
Block a user