From 1ec63832870d9614e56bda1e0c3a532e18ca9c4a Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Fri, 27 Nov 2015 11:29:29 +0100 Subject: [PATCH] Cleanup and formatting. --- accountant/frontend/static/js/operations.js | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/accountant/frontend/static/js/operations.js b/accountant/frontend/static/js/operations.js index ae802b9..b8eeae5 100644 --- a/accountant/frontend/static/js/operations.js +++ b/accountant/frontend/static/js/operations.js @@ -14,6 +14,7 @@ You should have received a copy of the GNU Affero General Public License along with Accountant. If not, see . */ +// vim: set tw=80 ts=2 sw=2 sts=2: accountantApp .factory("Operation", [ "$resource", function($resource) { @@ -24,6 +25,9 @@ accountantApp ); }]) +/* + * Controller for category chart. + */ .controller( "CategoryChartController", [ "$rootScope", "$scope", "$http", "$routeParams", @@ -167,6 +171,9 @@ accountantApp }); }]) +/* + * Controller for the sold chart. + */ .controller( "SoldChartController", [ "$rootScope", "$scope", "$http", "$routeParams", @@ -306,15 +313,18 @@ accountantApp $scope.loadSolds(); }]) +/* + * Controller for the operations. + */ .controller( "OperationController", [ - "$scope", "$http", "$rootScope", "$filter", "$routeParams", "notificationService", "Operation", - function($scope, $http, $rootScope, $filter, $routeParams, notificationService, Operation) { - // Operation store. + "$scope", "$rootScope", "$routeParams", "notificationService", "Operation", + function($scope, $rootScope, $routeParams, notificationService, Operation) { + // List of operations. $scope.operations = []; /* - * Add a new operation. + * Add an empty operation. */ $scope.add = function() { var operation = new Operation({