Add newEntry initialization on controller init.

This commit is contained in:
Alexis Lahouze 2015-07-15 15:11:25 +02:00
parent b8ea699f40
commit bbc8e051f0

View File

@ -50,6 +50,8 @@ accountantApp
$scope.newEntry = new Entries({}); $scope.newEntry = new Entries({});
}; };
$scope.resetNewEntry();
$scope.setExtremes = function(e) { $scope.setExtremes = function(e) {
begin = moment.utc(e.min); begin = moment.utc(e.min);
end = moment.utc(e.max); end = moment.utc(e.max);