Skip to content
Snippets Groups Projects
Commit 66ef1f00 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

Task #9607: changed past/future ratio

parent 9a05de62
No related branches found
No related tags found
No related merge requests found
...@@ -814,8 +814,8 @@ dataControllerMod.controller('DataController', ...@@ -814,8 +814,8 @@ dataControllerMod.controller('DataController',
$scope.jumpToNow = function() { $scope.jumpToNow = function() {
var floorLofarTime = dataService.floorDate(dataService.lofarTime, 1, 5); var floorLofarTime = dataService.floorDate(dataService.lofarTime, 1, 5);
dataService.viewTimeSpan = { dataService.viewTimeSpan = {
from: dataService.floorDate(new Date(floorLofarTime.getTime() - 0.4*$scope.zoomTimespan.value*60*1000), 1, 5), from: dataService.floorDate(new Date(floorLofarTime.getTime() - 0.25*$scope.zoomTimespan.value*60*1000), 1, 5),
to: dataService.floorDate(new Date(floorLofarTime.getTime() + 0.6*$scope.zoomTimespan.value*60*1000), 1, 5) to: dataService.floorDate(new Date(floorLofarTime.getTime() + 0.75*$scope.zoomTimespan.value*60*1000), 1, 5)
}; };
}; };
...@@ -878,8 +878,8 @@ dataControllerMod.controller('DataController', ...@@ -878,8 +878,8 @@ dataControllerMod.controller('DataController',
var focusTime = new Date(minStarttime.getTime() + 0.5*selectedTasksDurationInmsec); var focusTime = new Date(minStarttime.getTime() + 0.5*selectedTasksDurationInmsec);
dataService.viewTimeSpan = { dataService.viewTimeSpan = {
from: dataService.floorDate(new Date(focusTime.getTime() - 0.4*viewSpanInMinutes*60*1000), 1, 5), from: dataService.floorDate(new Date(focusTime.getTime() - 0.25*viewSpanInMinutes*60*1000), 1, 5),
to: dataService.floorDate(new Date(focusTime.getTime() + 0.6*viewSpanInMinutes*60*1000), 1, 5) to: dataService.floorDate(new Date(focusTime.getTime() + 0.75*viewSpanInMinutes*60*1000), 1, 5)
}; };
dataService.autoFollowNow = false; dataService.autoFollowNow = false;
}; };
...@@ -920,8 +920,8 @@ dataControllerMod.controller('DataController', ...@@ -920,8 +920,8 @@ dataControllerMod.controller('DataController',
} }
dataService.viewTimeSpan = { dataService.viewTimeSpan = {
from: dataService.floorDate(new Date(focusTime.getTime() - 0.4*$scope.zoomTimespan.value*60*1000)), from: dataService.floorDate(new Date(focusTime.getTime() - 0.25*$scope.zoomTimespan.value*60*1000)),
to: dataService.floorDate(new Date(focusTime.getTime() + 0.6*$scope.zoomTimespan.value*60*1000)) to: dataService.floorDate(new Date(focusTime.getTime() + 0.75*$scope.zoomTimespan.value*60*1000))
}; };
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment