Remove unused function parameters.

This commit is contained in:
Alexis Lahouze 2016-02-08 00:16:53 +01:00
parent 921713de90
commit fad4b6403c
2 changed files with 5 additions and 5 deletions

View File

@ -106,7 +106,7 @@ var accountantApp = angular.module("accountantApp", [
function($scope, $rootScope, $http, authService, $storage) { function($scope, $rootScope, $http, authService, $storage) {
$scope.dialogShown = false; $scope.dialogShown = false;
$scope.showLoginForm = function(e) { $scope.showLoginForm = function() {
// First, if there are registered credentials, use them // First, if there are registered credentials, use them
if($scope.dialogShown) { if($scope.dialogShown) {
return; return;
@ -137,7 +137,7 @@ var accountantApp = angular.module("accountantApp", [
login: { login: {
label: 'Login', label: 'Login',
className: 'btn-primary', className: 'btn-primary',
callback: function(result) { callback: function() {
$scope.dialogShown = false; $scope.dialogShown = false;
var email = $('#email').val(); var email = $('#email').val();
@ -162,7 +162,7 @@ var accountantApp = angular.module("accountantApp", [
cancel: { cancel: {
label: 'Annuler', label: 'Annuler',
className: 'btn-default', className: 'btn-default',
callback: function(result) { callback: function() {
authService.loginCancelled(null, 'Login cancelled by user action.'); authService.loginCancelled(null, 'Login cancelled by user action.');
$scope.dialogShown = false; $scope.dialogShown = false;
} }

View File

@ -312,12 +312,12 @@ accountantApp
}; };
// Reload solds when an operation is saved. // Reload solds when an operation is saved.
$rootScope.$on('operationSavedEvent', function(e, operation) { $rootScope.$on('operationSavedEvent', function() {
$scope.loadSolds(); $scope.loadSolds();
}); });
// Reload solds when an operation is deleted. // Reload solds when an operation is deleted.
$rootScope.$on('operationDeletedEvent', function(e, operation) { $rootScope.$on('operationDeletedEvent', function() {
$scope.loadSolds(); $scope.loadSolds();
}); });