mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-05 14:38:05 +02:00
Improve preset searching
Add preset searching of terms Add more synonyms, improve matching - levenstein for terms too.
This commit is contained in:
+5
-2
@@ -194,8 +194,11 @@
|
||||
|
||||
var id = iD();
|
||||
|
||||
iD.util.asyncMap(['keys.json', 'presets/presets.json', 'presets/defaults.json',
|
||||
'presets/categories.json', 'presets/forms.json'], d3.json, function(err, data) {
|
||||
iD.util.asyncMap(['keys.json',
|
||||
'data/presets/presets.json',
|
||||
'data/presets/defaults.json',
|
||||
'data/presets/categories.json',
|
||||
'data/presets/forms.json'], d3.json, function(err, data) {
|
||||
id.connection()
|
||||
.keys(data[0]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user