From bbc8e051f082e2dfc76198c281135b42821fd4b9 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Wed, 15 Jul 2015 15:11:25 +0200 Subject: [PATCH] Add newEntry initialization on controller init. --- accountant/frontend/static/js/entries.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/accountant/frontend/static/js/entries.js b/accountant/frontend/static/js/entries.js index 6e0139d..9f73eea 100644 --- a/accountant/frontend/static/js/entries.js +++ b/accountant/frontend/static/js/entries.js @@ -50,6 +50,8 @@ accountantApp $scope.newEntry = new Entries({}); }; + $scope.resetNewEntry(); + $scope.setExtremes = function(e) { begin = moment.utc(e.min); end = moment.utc(e.max);