locationinput: match on location subtitles
This commit is contained in:
parent
8e5e610255
commit
957d0dc893
1 changed files with 2 additions and 1 deletions
|
@ -35,7 +35,8 @@ c3nav = {
|
|||
var location = data[i];
|
||||
location.elem = c3nav._build_location_html(location);
|
||||
location.title_words = location.title.toLowerCase().split(/\s+/);
|
||||
location.match = ' ' + location.title_words.join(' ') + ' ';
|
||||
location.subtitle_words = location.subtitle.toLowerCase().split(/\s+/);
|
||||
location.match = ' ' + location.title_words.join(' ') + ' ' + location.subtitle_words.join(' ') + ' ';
|
||||
c3nav.locations.push(location);
|
||||
c3nav.locations_by_id[location.id] = location;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue