diff -r 903d6f504f71 -r ffdfe491869c client/app/auth/auth_controller.js --- a/client/app/auth/auth_controller.js Thu Jun 11 15:38:19 2015 +0200 +++ b/client/app/auth/auth_controller.js Thu Jun 11 16:19:36 2015 +0200 @@ -37,12 +37,12 @@ }; }) .controller('authregisterCtrl', function($scope, $modalInstance, authApi){ - $scope.message = ""; + $scope.message = ''; $scope.user = { - email: "", - password: "", - confirmPassword: "" + email: '', + password: '', + confirmPassword: '' }; $scope.submit = function(isValid) { @@ -57,29 +57,29 @@ $modalInstance.close('/auth/login'); }); } else { - $scope.message = "Il reste toujours des champs invalides"; + $scope.message = 'Il reste toujours des champs invalides'; } }; $scope.back = function () { $modalInstance.close('/auth/login'); }; }) - .directive("compareTo", function(){ + .directive('compareTo', function(){ return { - require: "ngModel", + require: 'ngModel', scope: { - otherModelValue: "=compareTo" + otherModelValue: '=compareTo' }, link: function($scope, element, attributes, ngModel) { - ngModel.$validators.compareTo = function(modelValue) { - return modelValue == $scope.otherModelValue; - }; + ngModel.$validators.compareTo = function(modelValue) { + return modelValue === $scope.otherModelValue; + }; - $scope.$watch("otherModelValue", function() { - ngModel.$validate(); - }); + $scope.$watch('otherModelValue', function() { + ngModel.$validate(); + }); } - } + }; }); })();