mirror of
https://github.com/nasa/openmct.git
synced 2025-02-21 01:42:31 +00:00
[Search] Changed ng-keyup to ng-change
In the search template. Also small comment change.
This commit is contained in:
parent
232a648fbd
commit
5e858f73d5
@ -27,22 +27,11 @@
|
||||
type="text"
|
||||
value=""
|
||||
ng-model="ngModel.input"
|
||||
ng-keyup="controller.search()" />
|
||||
<!--mct-control key="searchbar-control"
|
||||
ng-model="ngModel"
|
||||
structure="{cssclass: search-input, size: 50}">asdf
|
||||
</mct-control>
|
||||
|
||||
<mct-include key="textfield"
|
||||
ng-model="ngModel"
|
||||
ng-required="false"
|
||||
ng-pattern=""
|
||||
structure="{cssclass: search-input, size: 50}">
|
||||
</mct-include-->
|
||||
<mct-control key="textfield"
|
||||
ng-change="controller.search()" />
|
||||
<!--mct-control key="textfield"
|
||||
ng-model="ngModel"
|
||||
structure="{cssclass: 'search-input', size: '50px'}">
|
||||
</mct-control>
|
||||
</mct-control-->
|
||||
</div>
|
||||
|
||||
<!-- This div exists to determine scroll bar location -->
|
||||
|
@ -73,7 +73,7 @@ define(function () {
|
||||
function search() {
|
||||
var date = new Date(),
|
||||
timestamp = date.getTime(),
|
||||
inputText = $scope.ngModel.input;//document.getElementById(inputID).value;
|
||||
inputText = $scope.ngModel.input;
|
||||
|
||||
// Update whether the file tree should be displayed
|
||||
if (inputText === '') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user