mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-24 13:00:26 +01:00
Change Multiselect input placeholder text to translateable "Add"
This commit is contained in:
@@ -261,6 +261,7 @@ en:
|
||||
check:
|
||||
"yes": "Yes"
|
||||
"no": "No"
|
||||
add: Add
|
||||
none: None
|
||||
node: Node
|
||||
way: Way
|
||||
|
||||
1
dist/locales/en.json
vendored
1
dist/locales/en.json
vendored
@@ -316,6 +316,7 @@
|
||||
"yes": "Yes",
|
||||
"no": "No"
|
||||
},
|
||||
"add": "Add",
|
||||
"none": "None",
|
||||
"node": "Node",
|
||||
"way": "Way",
|
||||
|
||||
@@ -106,11 +106,9 @@ iD.ui.preset.multiselect = function(field, context) {
|
||||
function updateStrings(tagsData) {
|
||||
comboboxData = objectDifference(strings, tagsData);
|
||||
combobox.data(comboboxData.map(comboValues));
|
||||
input.attr('placeholder', field.placeholder() ||
|
||||
( 'Type here'));
|
||||
input.attr('placeholder', (field.placeholder() || t('inspector.add')) + '…');
|
||||
}
|
||||
|
||||
|
||||
function update(data) {
|
||||
var chips = multiselectContainer.selectAll('.chips').data(data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user