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) {
$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;
}

View File

@ -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();
});