From 7dc2e2bad166aa5fbcf0eaad8d0bab91eb2c0d31 Mon Sep 17 00:00:00 2001 From: Davide Alberani Date: Sun, 24 Apr 2016 16:31:07 +0200 Subject: [PATCH] code cleanup --- angular_app/js/app.js | 8 ++++---- angular_app/js/controllers.js | 4 ++-- angular_app/js/services.js | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/angular_app/js/app.js b/angular_app/js/app.js index 2929fb8..3756b22 100644 --- a/angular_app/js/app.js +++ b/angular_app/js/app.js @@ -41,7 +41,7 @@ eventManApp.run(['$rootScope', '$state', '$stateParams', '$log', /* Configure the states. */ eventManApp.config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) { - $urlRouterProvider.otherwise("/events"); + $urlRouterProvider.otherwise('/events'); $stateProvider .state('events', { url: '/events', @@ -50,7 +50,7 @@ eventManApp.config(['$stateProvider', '$urlRouterProvider', }) .state('event', { url: '/event', - templateUrl: 'event-main.html', + templateUrl: 'event-main.html' }) .state('event.new', { url: '/new', @@ -74,7 +74,7 @@ eventManApp.config(['$stateProvider', '$urlRouterProvider', }) .state('person', { url: '/person', - templateUrl: 'person-main.html', + templateUrl: 'person-main.html' }) .state('person.new', { url: '/new', @@ -93,7 +93,7 @@ eventManApp.config(['$stateProvider', '$urlRouterProvider', }) .state('import', { url: '/import', - templateUrl: 'import-main.html', + templateUrl: 'import-main.html' }) .state('import.persons', { url: '/persons', diff --git a/angular_app/js/controllers.js b/angular_app/js/controllers.js index 2a44349..9032eec 100644 --- a/angular_app/js/controllers.js +++ b/angular_app/js/controllers.js @@ -167,7 +167,7 @@ eventManControllers.controller('EventDetailsCtrl', ['$scope', '$state', 'Event', angular.forEach($scope.personsOrder, function(value, idx) { if (value !== key && value !== inv_key) { - new_order.push(value) + new_order.push(value); } } ); @@ -363,7 +363,7 @@ eventManControllers.controller('PersonsListCtrl', ['$scope', 'Person', 'Setting' angular.forEach($scope.personsOrder, function(value, idx) { if (value !== key && value !== inv_key) { - new_order.push(value) + new_order.push(value); } } ); diff --git a/angular_app/js/services.js b/angular_app/js/services.js index f5ac7ab..d544827 100644 --- a/angular_app/js/services.js +++ b/angular_app/js/services.js @@ -139,7 +139,7 @@ eventManServices.factory('Setting', ['$resource', } }, - update: {method: 'PUT'}, + update: {method: 'PUT'} }); }] );