1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-02 20:54:10 +01:00

Perform search-suggest query asynchronously via async http request rather than background thread.

This commit is contained in:
Kris Maglione
2008-11-28 18:51:28 +00:00
parent 4c914e9907
commit 5fdf4bd6d6
3 changed files with 35 additions and 16 deletions

View File

@@ -1514,10 +1514,13 @@ function Completion() //{{{
let ctxt = context.fork(name, 0);
ctxt.title = [engine.description + " Suggestions"];
ctxt.background = true;
ctxt.compare = null;
ctxt.regenerate = true;
ctxt.generate = function () bookmarks.getSuggestions(name, this.filter);
ctxt.incomplete = true;
bookmarks.getSuggestions(name, ctxt.filter, function (compl) {
ctxt.incomplete = false;
ctxt.completions = compl;
liberator.dump(compl);
});
});
},