| Index: dashboard/dashboard/static/autocomplete.html
|
| diff --git a/dashboard/dashboard/static/autocomplete.html b/dashboard/dashboard/static/autocomplete.html
|
| index e0a108c0bcf89c19f4482def3f4a648a4395fc7c..c94dfb4ec2a3ca99bc90ac6c48c7e62bcd89d123 100644
|
| --- a/dashboard/dashboard/static/autocomplete.html
|
| +++ b/dashboard/dashboard/static/autocomplete.html
|
| @@ -163,13 +163,15 @@ var autocomplete = (function() {
|
| continue;
|
| }
|
|
|
| - this.addWord_(this.trie_, source.name, i, source.name.length, 1);
|
| + this.addWord_(this.trie_, source.name, i,
|
| + source.name.toString().length, 1);
|
|
|
| - var words = source.name.split(UNIMPORTANT_CHAR_REGEX_);
|
| + var words = source.name.toString().split(UNIMPORTANT_CHAR_REGEX_);
|
| if (words.length > 1) {
|
| var position = 1;
|
| for (var j = 0; j < words.length; j++) {
|
| - this.addWord_(this.trie_, words[j], i, source.name.length, position);
|
| + this.addWord_(this.trie_, words[j], i,
|
| + source.name.toString().length, position);
|
| position += words[j].length;
|
| }
|
| }
|
| @@ -187,7 +189,7 @@ var autocomplete = (function() {
|
| */
|
| Trie.prototype.addWord_ = function(node, word, index, totalLength,
|
| position) {
|
| - var characters = word.toLowerCase().split('');
|
| + var characters = word.toString().toLowerCase().split('');
|
| for (var i = 0; i < characters.length; i++) {
|
| var letter = characters[i];
|
| if (!(letter in node[1])) {
|
|
|