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