Support placeholder for combo fields

This commit is contained in:
John Firebaugh
2014-07-10 10:00:53 -07:00
parent 06ece1013f
commit 963064713d
+2 -4
View File
@@ -36,10 +36,8 @@ iD.ui.preset.typeCombo = function(field) {
return o;
}));
input.attr('placeholder', function() {
if (opts.length < 3) return '';
return opts.slice(0, 3).join(', ') + '...';
});
input.attr('placeholder', field.placeholder() ||
(opts.length < 3 ? '' : opts.slice(0, 3).join(', ') + '...'));
}
}