add slug to location.match
This commit is contained in:
parent
b329f6e0ec
commit
6cf4f648c0
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ c3nav = {
|
||||||
location.elem = c3nav._build_location_html(location);
|
location.elem = c3nav._build_location_html(location);
|
||||||
location.title_words = location.title.toLowerCase().split(/\s+/);
|
location.title_words = location.title.toLowerCase().split(/\s+/);
|
||||||
location.subtitle_words = location.subtitle.toLowerCase().split(/\s+/);
|
location.subtitle_words = location.subtitle.toLowerCase().split(/\s+/);
|
||||||
location.match = ' ' + location.title_words.join(' ') + ' ' + location.subtitle_words.join(' ') + ' ';
|
location.match = ' ' + location.title_words.join(' ') + ' ' + location.subtitle_words.join(' ') + ' ' + location.slug;
|
||||||
locations.push(location);
|
locations.push(location);
|
||||||
locations_by_id[location.id] = location;
|
locations_by_id[location.id] = location;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue