Skip to content

Commit

Permalink
[Time Controller] Update model state for text entry
Browse files Browse the repository at this point in the history
  • Loading branch information
VWoeltjen committed Oct 21, 2015
1 parent 6d2b2fd commit f88e8eb
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ define(
function updateOuterStart(t) {
var ngModel = $scope.ngModel;

ngModel.outer.start = t;

ngModel.outer.end = Math.max(
ngModel.outer.start + outerMinimumSpan,
ngModel.outer.end
Expand All @@ -198,14 +200,14 @@ define(
ngModel.inner.end
);

$scope.startOuterText = formatTimestamp(t);

updateViewForInnerSpanFromModel(ngModel);
}

function updateOuterEnd(t) {
var ngModel = $scope.ngModel;

ngModel.outer.end = t;

ngModel.outer.start = Math.min(
ngModel.outer.end - outerMinimumSpan,
ngModel.outer.start
Expand All @@ -218,8 +220,6 @@ define(
ngModel.inner.start
);

$scope.endOuterText = formatTimestamp(t);

updateViewForInnerSpanFromModel(ngModel);
}

Expand Down

0 comments on commit f88e8eb

Please sign in to comment.