[Time Conductor] Update displayed text when format changes

This commit is contained in:
Victor Woeltjen 2015-10-27 10:27:54 -07:00
parent 3bdaae292e
commit 82b321b3f9

View File

@ -267,20 +267,15 @@ define(
}
}
function reinitializeBounds(now, increment) {
var end = Math.ceil(now / increment) * increment,
start = end - increment;
$scope.ngModel.outer.start = start;
$scope.ngModel.outer.end = end;
$scope.ngModel.inner.start = start;
$scope.ngModel.inner.end = end;
$scope.boundsModel = {};
updateViewFromModel($scope.ngModel);
}
function updateFormat(key) {
formatter = formatService.getFormat(key) ||
formatService.getFormat(DEFAULT_FORMAT);
// Assume that start/end are still valid, but clear
// the displayed text for bounds, since this will
// now be formatted differently.
$scope.boundsModel = {};
updateViewFromModel($scope.ngModel);
}
function updateStartFromPicker(value) {