diff --git a/accountant/frontend/static/js/app.js b/accountant/frontend/static/js/app.js index 632a59d..f4e69b2 100644 --- a/accountant/frontend/static/js/app.js +++ b/accountant/frontend/static/js/app.js @@ -16,23 +16,23 @@ */ var accountantApp = angular.module("accountantApp", [ 'ngResource', 'ngRoute', - "mgcrea.ngStrap", - "highcharts-ng", - "http-auth-interceptor", + 'mgcrea.ngStrap', + 'highcharts-ng', + 'http-auth-interceptor', 'ui-notification', - "Storage.Service", - "xeditable" + 'Storage.Service', + 'xeditable' ]) -.factory("sessionInjector", ["$storage", function($storage) { +.factory('sessionInjector', ['$storage', function($storage) { var sessionInjector = { request : function(config) { var token = $storage.get('token'); if(token) { var token_type = $storage.get('token_type'); - var authorization = token_type + " " + token; config.headers["Authorization"] = authorization; + var authorization = token_type + ' ' + token; } return config; } @@ -98,8 +98,8 @@ var accountantApp = angular.module("accountantApp", [ editableOptions.theme = 'bs3'; // bootstrap3 theme. Can be also 'bs2', 'default' }) -.controller("MainController", [ - "$scope", "$rootScope", "$http", "authService", "$storage", +.controller('MainController', [ + '$scope', '$rootScope', '$http', 'authService', '$storage', function($scope, $rootScope, $http, authService, $storage) { $scope.dialogShown = false; @@ -114,36 +114,36 @@ var accountantApp = angular.module("accountantApp", [ $storage.clear(); bootbox.dialog({ - title: "Authentification requise", - message: '