mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
Change stars from integer field to combo, support capital 'S'
(closes #5216)
This commit is contained in:
@@ -252,7 +252,7 @@
|
||||
"sport_racing_motor": {"key": "sport", "type": "semiCombo", "label": "Sports", "options": ["motor", "karting", "motocross"]},
|
||||
"sport_racing_nonmotor": {"key": "sport", "type": "semiCombo", "label": "Sports", "options": ["bmx", "cycling", "dog_racing", "horse_racing", "running"]},
|
||||
"sport": {"key": "sport", "type": "semiCombo", "label": "Sports"},
|
||||
"stars": {"key": "stars", "type": "number", "minValue": 0, "label": "Stars"},
|
||||
"stars": {"key": "stars", "type": "combo", "label": "Stars"},
|
||||
"start_date": {"key": "start_date", "type": "text", "universal": true, "label": "Start Date"},
|
||||
"step_count": {"key": "step_count", "type": "number", "minValue": 0, "label": "Number of Steps"},
|
||||
"stop": {"key": "stop", "type": "combo", "label": "Stop Type", "strings": {"options": {"all": "All Ways", "minor": "Minor Road"}}},
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
{
|
||||
"key": "stars",
|
||||
"type": "number",
|
||||
"minValue": 0,
|
||||
"type": "combo",
|
||||
"label": "Stars"
|
||||
}
|
||||
|
||||
@@ -264,7 +264,7 @@ export default {
|
||||
// A few OSM keys expect values to contain uppercase values (see #3377).
|
||||
// This is not an exhaustive list (e.g. `name` also has uppercase values)
|
||||
// but these are the fields where taginfo value lookup is most useful.
|
||||
var re = /network|taxon|genus|species|brand|grape_variety|royal_cypher|booth|rating|:output|_hours|_times/;
|
||||
var re = /network|taxon|genus|species|brand|grape_variety|royal_cypher|booth|rating|stars|:output|_hours|_times/;
|
||||
var allowUpperCase = (params.key.match(re) !== null);
|
||||
var f = filterValues(allowUpperCase);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user