diff options
| author | Alon Levy <alon@pobox.com> | 2015-03-08 14:55:15 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-03-08 14:55:16 +0200 |
| commit | 59c23de887c2938533b735f0dedbb788e22d0f6f (patch) | |
| tree | 0433b8b943ba13d599e7978bb861113706f4d9d9 /src/client/view/search.js | |
| parent | 84cf1a4f50ef5b5094b4e250b664fb0e7089ee10 (diff) | |
client/completion: support links as well
the suggestions from textanalysis now come as a dictionary with
{nodes: {name: id},
links: {name: id}}
(before it was a single dictionary, {name:id})
And the options bus for the textanalyser and search completion have been
updated accordingly. textanalyser also takes into account the cursor
position to determine which of the option dictionaries to use.
Diffstat (limited to 'src/client/view/search.js')
| -rw-r--r-- | src/client/view/search.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/view/search.js b/src/client/view/search.js index c6203c34..29e702d1 100644 --- a/src/client/view/search.js +++ b/src/client/view/search.js @@ -17,7 +17,7 @@ function init() { matchStartOfString: true, }); - search_completer.options.plug(textanalysis.suggestions_options); + search_completer.options.plug(textanalysis.suggestions_options.map('.nodes')); search.on('input', search_on_submit); search.on('keydown', function(e) { if (e.which == 13 && !search_completer.handleEnter()) { |
