This commit is contained in:
Alexis Lahouze 2015-08-19 15:03:15 +02:00
parent 803b2baeab
commit f602109c53
1 changed files with 3 additions and 8 deletions

View File

@ -172,13 +172,6 @@ accountantApp
"$rootScope", "$scope", "$http", "$routeParams",
function($rootScope, $scope, $http, $routeParams) {
$scope.setExtremes = function(e) {
begin = moment.utc(e.min);
end = moment.utc(e.max);
$scope.selectRange(begin, end);
};
// Configure chart for entries.
$scope.config = {
options: {
@ -246,7 +239,9 @@ accountantApp
},
minRange: 3600 * 1000 * 24 * 14, // 2 weeks
events: {
afterSetExtremes: $scope.setExtremes
afterSetExtremes: function(e) {
$scope.selectRange(moment.utc(e.min), moment.utc(e.max));
}
},
currentMin: moment.utc().startOf('month'),
currentMax: moment.utc().endOf('month')