mirror of
https://github.com/nasa/openmct.git
synced 2025-03-23 20:45:17 +00:00
[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:
parent
c82163fa7b
commit
492dbcbc51
@ -29,7 +29,7 @@
|
||||
<input type="text"
|
||||
id="searchinput"
|
||||
value=""
|
||||
ng-keyup="controller.search('searchinput')"
|
||||
ng-keypress="controller.search('searchinput')"
|
||||
style="width: 66%"/>
|
||||
</div>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user