Use the cycleway's strings.options property to get options

This commit is contained in:
Eric Brelsford
2015-06-15 16:37:42 -04:00
parent ca9dde8c33
commit 95b1eb6cce

View File

@@ -71,9 +71,7 @@ iD.ui.preset.cycleway = function(field) {
}
cycleway.options = function() {
var options = ['none', 'lane', 'shared_lane', 'track', 'share_busway', 'opposite_lane', 'opposite'];
return options.map(function(option) {
return d3.keys(field.strings.options).map(function(option) {
return {
title: field.t('options.' + option + '.description'),
value: option