From b7d2578fb872af1e1d0eb91d1b34176dc92d1d15 Mon Sep 17 00:00:00 2001 From: Saman Bemel-Benrud Date: Wed, 29 May 2013 15:54:29 -0400 Subject: [PATCH] adding placeholders for access preset. --- data/presets.yaml | 1 + data/presets/fields.json | 1 + data/presets/fields/access.json | 1 + dist/locales/en.json | 1 + js/id/ui/preset/access.js | 1 + 5 files changed, 5 insertions(+) diff --git a/data/presets.yaml b/data/presets.yaml index 366a4984a..89080bd22 100644 --- a/data/presets.yaml +++ b/data/presets.yaml @@ -16,6 +16,7 @@ en: fields: access: label: Access + placeholder: Unkown types: access: General foot: Foot diff --git a/data/presets/fields.json b/data/presets/fields.json index 755ece5e0..83764eca3 100644 --- a/data/presets/fields.json +++ b/data/presets/fields.json @@ -9,6 +9,7 @@ ], "type": "access", "label": "Access", + "placeholder": "Unkown", "strings": { "types": { "access": "General", diff --git a/data/presets/fields/access.json b/data/presets/fields/access.json index a58a7f9ff..6a4f9b68d 100644 --- a/data/presets/fields/access.json +++ b/data/presets/fields/access.json @@ -2,6 +2,7 @@ "keys": ["access", "foot", "motor_vehicle", "bicycle", "horse"], "type": "access", "label": "Access", + "placeholder": "Unkown", "strings": { "types": { "access": "General", diff --git a/dist/locales/en.json b/dist/locales/en.json index 48b85c10a..7b7714e0b 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -376,6 +376,7 @@ "fields": { "access": { "label": "Access", + "placeholder": "Unkown", "types": { "access": "General", "foot": "Foot", diff --git a/js/id/ui/preset/access.js b/js/id/ui/preset/access.js index adc57522e..ab6586017 100644 --- a/js/id/ui/preset/access.js +++ b/js/id/ui/preset/access.js @@ -28,6 +28,7 @@ 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) {