diff --git a/platform/commonUI/general/res/templates/controls/time-controller.html b/platform/commonUI/general/res/templates/controls/time-controller.html
index c0fdae3009..df7b2c8455 100644
--- a/platform/commonUI/general/res/templates/controls/time-controller.html
+++ b/platform/commonUI/general/res/templates/controls/time-controller.html
@@ -22,12 +22,9 @@
diff --git a/platform/commonUI/general/src/controllers/TimeRangeController.js b/platform/commonUI/general/src/controllers/TimeRangeController.js
index 3e792af052..ac111ab1a9 100644
--- a/platform/commonUI/general/src/controllers/TimeRangeController.js
+++ b/platform/commonUI/general/src/controllers/TimeRangeController.js
@@ -172,29 +172,31 @@ define(
updateViewFromModel($scope.ngModel);
}
- function updateOuterStart(date) {
+ function updateOuterStart(t) {
var ngModel = $scope.ngModel;
- ngModel.outer.start =
- date.getTime();
ngModel.outer.end =
Math.max(ngModel.outer.start, ngModel.outer.end);
ngModel.inner.start =
Math.max(ngModel.outer.start, ngModel.inner.start);
ngModel.inner.end =
Math.max(ngModel.outer.start, ngModel.inner.end);
+
+ $scope.startOuterText = formatTimestamp(t);
+
updateViewForInnerSpanFromModel(ngModel);
}
- function updateOuterEnd(date) {
+ function updateOuterEnd(t) {
var ngModel = $scope.ngModel;
- ngModel.outer.end =
- date.getTime();
ngModel.outer.start =
Math.min(ngModel.outer.end, ngModel.outer.start);
ngModel.inner.start =
Math.min(ngModel.outer.end, ngModel.inner.start);
ngModel.inner.end =
Math.min(ngModel.outer.end, ngModel.inner.end);
+
+ $scope.endOuterText = formatTimestamp(t);
+
updateViewForInnerSpanFromModel(ngModel);
}
@@ -213,8 +215,8 @@ define(
$scope.$watchCollection("ngModel", updateViewFromModel);
$scope.$watch("spanWidth", updateSpanWidth);
- $scope.$watch("startOuterDate", updateOuterStart);
- $scope.$watch("endOuterDate", updateOuterEnd);
+ $scope.$watch("ngModel.outer.start", updateOuterStart);
+ $scope.$watch("ngModel.outer.end", updateOuterEnd);
}
return TimeConductorController;
diff --git a/platform/commonUI/general/src/directives/MCTPopup.js b/platform/commonUI/general/src/directives/MCTPopup.js
index 6dbf3666fc..eebab5b690 100644
--- a/platform/commonUI/general/src/directives/MCTPopup.js
+++ b/platform/commonUI/general/src/directives/MCTPopup.js
@@ -23,6 +23,8 @@
define(
function () {
+ 'use strict';
+
var TEMPLATE = "
";
function MCTPopup($window, $document, $compile) {
@@ -60,7 +62,7 @@ define(
transclude: true,
link: link,
scope: {}
- }
+ };
}
return MCTPopup;