mirror of
https://github.com/nasa/openmct.git
synced 2025-05-20 17:33:33 +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) {
|
function fillInputWithString(string) {
|
||||||
$scope.hideOptions = true;
|
$scope.hideOptions = true;
|
||||||
// Hard coded!!
|
$scope.ngModel[$scope.field] = string;
|
||||||
$scope.ngModel[4] = string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function fillInputWithIndexedOption() {
|
function fillInputWithIndexedOption() {
|
||||||
$scope.ngModel[4] = $scope.filteredOptions[$scope.optionIndex].name;
|
$scope.ngModel[$scope.field] = $scope.filteredOptions[$scope.optionIndex].name;
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.keyDown = function($event) {
|
$scope.keyDown = function($event) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user