[Time Conductor] Test restoration of old values

...and clarify name of the function in scope which does this.
This commit is contained in:
Victor Woeltjen
2015-11-27 14:23:25 -08:00
parent 02050fa3ef
commit 248bc68f0d
3 changed files with 10 additions and 4 deletions

View File

@ -82,12 +82,12 @@ define(
updateFromModel($scope.ngModel[$scope.field]);
}
function restoreValue() {
function restoreTextValue() {
$scope.textValue = $scope.lastValidValue;
updateFromView($scope.textValue);
}
$scope.restoreValue = restoreValue;
$scope.restoreTextValue = restoreTextValue;
$scope.picker = { active: false };