From fad4b6403c03149c5bc11f298276f27c8082ea93 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Mon, 8 Feb 2016 00:16:53 +0100 Subject: [PATCH] Remove unused function parameters. --- accountant/frontend/static/js/app.js | 6 +++--- accountant/frontend/static/js/operations.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/accountant/frontend/static/js/app.js b/accountant/frontend/static/js/app.js index 6d0c762..144f7ea 100644 --- a/accountant/frontend/static/js/app.js +++ b/accountant/frontend/static/js/app.js @@ -106,7 +106,7 @@ var accountantApp = angular.module("accountantApp", [ function($scope, $rootScope, $http, authService, $storage) { $scope.dialogShown = false; - $scope.showLoginForm = function(e) { + $scope.showLoginForm = function() { // First, if there are registered credentials, use them if($scope.dialogShown) { return; @@ -137,7 +137,7 @@ var accountantApp = angular.module("accountantApp", [ login: { label: 'Login', className: 'btn-primary', - callback: function(result) { + callback: function() { $scope.dialogShown = false; var email = $('#email').val(); @@ -162,7 +162,7 @@ var accountantApp = angular.module("accountantApp", [ cancel: { label: 'Annuler', className: 'btn-default', - callback: function(result) { + callback: function() { authService.loginCancelled(null, 'Login cancelled by user action.'); $scope.dialogShown = false; } diff --git a/accountant/frontend/static/js/operations.js b/accountant/frontend/static/js/operations.js index 50906ca..173e240 100644 --- a/accountant/frontend/static/js/operations.js +++ b/accountant/frontend/static/js/operations.js @@ -312,12 +312,12 @@ accountantApp }; // Reload solds when an operation is saved. - $rootScope.$on('operationSavedEvent', function(e, operation) { + $rootScope.$on('operationSavedEvent', function() { $scope.loadSolds(); }); // Reload solds when an operation is deleted. - $rootScope.$on('operationDeletedEvent', function(e, operation) { + $rootScope.$on('operationDeletedEvent', function() { $scope.loadSolds(); });