This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository coselmar. See http://git.codelutin.com/coselmar.git commit 6d1bd0560634886115c8b8973dd1c277756eb4ac Author: Yannick Martel <martel@©odelutin.com> Date: Tue Feb 17 18:17:38 2015 +0100 fix usage of defaultFailOnCall service for error --- .../src/main/webapp/js/coselmar-controllers.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/coselmar-ui/src/main/webapp/js/coselmar-controllers.js b/coselmar-ui/src/main/webapp/js/coselmar-controllers.js index 2188170..7b64073 100644 --- a/coselmar-ui/src/main/webapp/js/coselmar-controllers.js +++ b/coselmar-ui/src/main/webapp/js/coselmar-controllers.js @@ -636,7 +636,7 @@ coselmarControllers.controller("UserViewCtrl", // Go back to users list $location.path("/users"); - }, errorService.defaultFailOnCall(error)); + }, errorService.defaultFailOnCall); }; @@ -654,7 +654,7 @@ coselmarControllers.controller("UserViewCtrl", // Go back to users list $route.reload(); - }, errorService.defaultFailOnCall(error)); + }, errorService.defaultFailOnCall); }; @@ -672,7 +672,7 @@ coselmarControllers.controller("UserViewCtrl", // Go back to users list $route.reload(); - }, errorService.defaultFailOnCall(error)); + }, errorService.defaultFailOnCall); }; @@ -795,7 +795,7 @@ coselmarControllers.controller("QuestionsCtrl", ['$scope', '$route', '$routePara $scope.searchQuestions = function() { questionsService.getQuestions($scope.searchOptions, function(questions) { $scope.questions = questions; - }, errorService.defaultFailOnCall(error)); + }, errorService.defaultFailOnCall); }; @@ -1229,18 +1229,18 @@ coselmarControllers.controller("QuestionCtrl", ['$scope', '$route', '$routeParam }]); -coselmarControllers.controller('ModalSearchDocumentsCtrl', function ($scope, $modalInstance, documentService) { +coselmarControllers.controller('ModalSearchDocumentsCtrl', function ($scope, $modalInstance, documentService, errorService) { $scope.searchKeywords = []; documentService.getDocuments($scope.searchKeywords, function(documents) { $scope.documents = documents; - }); + }, errorService.defaultFailOnCall); $scope.searchDocuments = function(searchKeywords) { documentService.getDocuments(searchKeywords, function(documents) { $scope.documents = documents; - }); + }, errorService.defaultFailOnCall); }; $scope.select = function (document) { @@ -1253,7 +1253,7 @@ coselmarControllers.controller('ModalSearchDocumentsCtrl', function ($scope, $mo }); -coselmarControllers.controller('ModalSearchQuestionsCtrl', function ($scope, $modalInstance, currentQuestionId, questionsService) { +coselmarControllers.controller('ModalSearchQuestionsCtrl', function ($scope, $modalInstance, currentQuestionId, questionsService, errorService) { $scope.searchKeywords = []; $scope.searchOptions = { 'type' : 'PERIODICAL_PUBLICATION', 'privacy' : '', 'status' : '', 'keywords' : []}; @@ -1261,13 +1261,13 @@ coselmarControllers.controller('ModalSearchQuestionsCtrl', function ($scope, $mo questionsService.getQuestions($scope.searchOptions, function(questions) { $scope.questions = questions; - }); + }, errorService.defaultFailOnCall); $scope.searchQuestions = function(searchKeywords) { $scope.searchOptions = { 'privacy' : '', 'status' : '', 'keywords' : searchKeywords}; questionsService.getQuestions($scope.searchOptions, function(questions) { $scope.questions = questions; - }); + }, errorService.defaultFailOnCall); }; -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.