|
|
@ -53,6 +53,11 @@ function rebuildSuggestions() { |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Trim the amount of results displayed
|
|
|
|
|
|
|
|
if (suggestions.length > 100) { |
|
|
|
|
|
|
|
suggestions.splice(100) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
suggestions.forEach(function (suggestion, index) { |
|
|
|
suggestions.forEach(function (suggestion, index) { |
|
|
|
var suggestionLi = document.createElement('li') |
|
|
|
var suggestionLi = document.createElement('li') |
|
|
|
suggestionsArea.appendChild(suggestionLi) |
|
|
|
suggestionsArea.appendChild(suggestionLi) |
|
|
|