Add default presets, and expand presets

This commit is contained in:
Ansis Brammanis
2013-02-22 16:27:49 -05:00
parent 4d5560bbbc
commit 00e6100a01
3 changed files with 719 additions and 416 deletions

View File

@@ -36,6 +36,8 @@ iD.ui.PresetGrid = function() {
function filter(value) {
if (!value) return presetData.defaults(entity);
value = value.toLowerCase();
return viable.filter(function(v) {
return v.name.toLowerCase().indexOf(value) !== -1;