[Search] Comments and keypress

Changed the controller for the search input
to respond on keypress rather than keyup.
Added comments better explaining searchResult
objects to the search aggregator.
This commit is contained in:
shale 2015-07-17 09:33:07 -07:00
parent c82163fa7b
commit 492dbcbc51
2 changed files with 6 additions and 1 deletions

View File

@ -29,7 +29,7 @@
<input type="text"
id="searchinput"
value=""
ng-keyup="controller.search('searchinput')"
ng-keypress="controller.search('searchinput')"
style="width: 66%"/>
</div>

View File

@ -85,6 +85,11 @@ define(
return results;
}
// Recieves results in the format of a serachResult object. It
// has the members id, object, and score. It has a function
// next() which returns the next highest score search result
// for that search.
// Calls the searches of each of the providers, then
// merges the results lists so that there are not redundant
// results