From add4871527c73a1a444081d1082563069dfd304d Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Fri, 27 Nov 2015 11:31:23 +0100 Subject: [PATCH] Cleanup and formatting. --- accountant/frontend/static/js/accounts.js | 3 +-- accountant/frontend/static/js/app.js | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/accountant/frontend/static/js/accounts.js b/accountant/frontend/static/js/accounts.js index acfb51f..9bbba98 100644 --- a/accountant/frontend/static/js/accounts.js +++ b/accountant/frontend/static/js/accounts.js @@ -16,7 +16,6 @@ */ // vim: set tw=80 ts=2 sw=2 sts=2: -// The AccountController. accountantApp .factory("Account", ["$resource", function($resource) { @@ -64,7 +63,7 @@ accountantApp }; /* - * Add an empty account if not already added. + * Add an empty account. */ $scope.add = function() { var account = new Account({ diff --git a/accountant/frontend/static/js/app.js b/accountant/frontend/static/js/app.js index f5dc8f3..b335ccf 100644 --- a/accountant/frontend/static/js/app.js +++ b/accountant/frontend/static/js/app.js @@ -23,6 +23,7 @@ var accountantApp = angular.module("accountantApp", [ ]) .config(function($httpProvider, $routeProvider, $locationProvider) { + // Define interceptors. $httpProvider.interceptors.push(function($q, notificationService) { return { "response": function(response) { @@ -41,6 +42,7 @@ var accountantApp = angular.module("accountantApp", [ }; }); + // Defining template and controller in function of route. $routeProvider.when('/account/:accountId/operations', { templateUrl: 'static/templates/operations.html', controller: 'OperationController' @@ -54,6 +56,7 @@ var accountantApp = angular.module("accountantApp", [ redirectTo: 'accounts' }); + // Enable HTML5 mode. $locationProvider.html5Mode(true); })