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({