diff --git a/brewman/static/app/ledger/ledger.controller.js b/brewman/static/app/ledger/ledger.controller.js index a33b7ca6..978d6658 100644 --- a/brewman/static/app/ledger/ledger.controller.js +++ b/brewman/static/app/ledger/ledger.controller.js @@ -27,7 +27,6 @@ var LedgerController = ['$scope', '$routeParams', '$location', 'asDateFilter', ' finishDate = $scope.info.FinishDate; if (id === $routeParams.id && startDate === $routeParams.StartDate && finishDate === $routeParams.FinishDate) { Ledger.get({id: id, StartDate: startDate, FinishDate: finishDate}, function (data) { - $scope.doFilter.cache = {}; $scope.info = data; }); } else { @@ -65,7 +64,7 @@ var LedgerController = ['$scope', '$routeParams', '$location', 'asDateFilter', ' $scope.footer = filtered.Footer; }, true); - $scope.doFilter = _.memoize(function (hidden, input) { + $scope.doFilter = function (hidden, input) { var data = angular.copy(input), debit = 0, credit = 0, running = 0; @@ -97,9 +96,7 @@ var LedgerController = ['$scope', '$routeParams', '$location', 'asDateFilter', ' Running: running } }; - }, function (hidden) { - return hidden.sort().join(' '); - }); + }; $scope.shortcuts = { 'up': function (e) { diff --git a/brewman/static/app/ledger/ledger.html b/brewman/static/app/ledger/ledger.html index 6f2bc568..1d29be0d 100644 --- a/brewman/static/app/ledger/ledger.html +++ b/brewman/static/app/ledger/ledger.html @@ -1,4 +1,4 @@ -