[CLOCK] Issue #1273 : Use '$ scope.field' to avoid hard-coding.

This commit is contained in:
dhrubomoy 2017-05-30 16:20:12 -04:00
parent 893e24ff98
commit 7f14397262

View File

@ -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) {