mirror of
https://github.com/nasa/openmct.git
synced 2025-02-21 01:42:31 +00:00
[CLOCK] Issue #1273 : Use '$ scope.field' to avoid hard-coding.
This commit is contained in:
parent
893e24ff98
commit
7f14397262
@ -64,12 +64,11 @@ define(
|
||||
|
||||
function fillInputWithString(string) {
|
||||
$scope.hideOptions = true;
|
||||
// Hard coded!!
|
||||
$scope.ngModel[4] = string;
|
||||
$scope.ngModel[$scope.field] = string;
|
||||
}
|
||||
|
||||
function fillInputWithIndexedOption() {
|
||||
$scope.ngModel[4] = $scope.filteredOptions[$scope.optionIndex].name;
|
||||
$scope.ngModel[$scope.field] = $scope.filteredOptions[$scope.optionIndex].name;
|
||||
}
|
||||
|
||||
$scope.keyDown = function($event) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user