diff options
| author | pliablepixels <pliablepixels@gmail.com> | 2016-01-28 14:21:45 -0500 |
|---|---|---|
| committer | pliablepixels <pliablepixels@gmail.com> | 2016-01-28 14:21:45 -0500 |
| commit | 1b734f1ab04600b48b82fd5f8c571e32b350e120 (patch) | |
| tree | a7e146bbaca1fbb15597acc59c43da11cbb0fd1b /www | |
| parent | 311ac5fbcf01d64de5fb784fffa8bdf513f13a45 (diff) | |
#154 - adjusted start to start of day
Former-commit-id: 7e31fe8092f63041fede65ad5c9040460400f498
Diffstat (limited to 'www')
| -rw-r--r-- | www/js/MontageHistoryCtrl.js | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/www/js/MontageHistoryCtrl.js b/www/js/MontageHistoryCtrl.js index 2dd8adb7..83db6105 100644 --- a/www/js/MontageHistoryCtrl.js +++ b/www/js/MontageHistoryCtrl.js @@ -221,13 +221,6 @@ angular.module('zmApp.controllers').controller('zmApp.MontageHistoryCtrl', ['$sc } - var tdatetimeValue = new Date(); - tdatetimeValue.setDate(tdatetimeValue.getDate()-1); - - $scope.datetimeValue = {value:""}; - $scope.datetimeValue.value = tdatetimeValue; - - var eventQueryInterval; @@ -420,8 +413,8 @@ angular.module('zmApp.controllers').controller('zmApp.MontageHistoryCtrl', ['$sc }; - // start with a day ago - var timenow = moment().subtract('1','day'); + // default = start of day + var timenow = moment().startOf('day'); $scope.sliderVal.year = timenow.format("YYYY"); $scope.sliderVal.month = timenow.format("MM"); $scope.sliderVal.day = timenow.format("DD"); @@ -431,6 +424,14 @@ angular.module('zmApp.controllers').controller('zmApp.MontageHistoryCtrl', ['$sc $scope.sliderVal.realRate = $scope.sliderVal.rate *100; + //var tdatetimeValue = new Date(); + //tdatetimeValue.setDate(tdatetimeValue.getDate()-1); + + $scope.datetimeValue = {value:""}; + $scope.datetimeValue.value = timenow.toDate(); + + var eventQueryInterval; + var commonCss = { |
