mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-19 17:43:39 +00:00
Use generic access value as placeholder (fixes #1780)
This commit is contained in:
@@ -28,7 +28,6 @@ iD.ui.preset.access = function(field, context) {
|
||||
.attr('class', 'col6 preset-input-access-wrap')
|
||||
.append('input')
|
||||
.attr('type', 'text')
|
||||
.attr('placeholder', field.placeholder())
|
||||
.attr('class', 'preset-input-access')
|
||||
.attr('id', function(d) { return 'preset-input-access-' + d; })
|
||||
.each(function(d) {
|
||||
@@ -73,7 +72,10 @@ iD.ui.preset.access = function(field, context) {
|
||||
|
||||
access.tags = function(tags) {
|
||||
items.selectAll('.preset-input-access')
|
||||
.value(function(d) { return tags[d] || ''; });
|
||||
.value(function(d) { return tags[d] || ''; })
|
||||
.attr('placeholder', function(d) {
|
||||
return d !== 'access' && tags.access ? tags.access : field.placeholder();
|
||||
});
|
||||
};
|
||||
|
||||
access.focus = function() {
|
||||
|
||||
Reference in New Issue
Block a user