branch develop updated (f4d6cdb -> c5572fb)
This is an automated email from the git hooks/post-receive script. New change to branch develop in repository coselmar. See http://git.codelutin.com/coselmar.git from f4d6cdb Add last 5 projects in home page when user is connected. internal-test #6443 new c5572fb fix homepage when no user connected The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit c5572fbea043e994fa8aa4c6df09566446837f4d Author: Yannick Martel <martel@©odelutin.com> Date: Mon Feb 16 14:06:36 2015 +0100 fix homepage when no user connected Summary of changes: coselmar-ui/src/main/webapp/js/coselmar-controllers.js | 3 +++ 1 file changed, 3 insertions(+) -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
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 c5572fbea043e994fa8aa4c6df09566446837f4d Author: Yannick Martel <martel@©odelutin.com> Date: Mon Feb 16 14:06:36 2015 +0100 fix homepage when no user connected --- coselmar-ui/src/main/webapp/js/coselmar-controllers.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coselmar-ui/src/main/webapp/js/coselmar-controllers.js b/coselmar-ui/src/main/webapp/js/coselmar-controllers.js index 97a9ac7..76057ac 100644 --- a/coselmar-ui/src/main/webapp/js/coselmar-controllers.js +++ b/coselmar-ui/src/main/webapp/js/coselmar-controllers.js @@ -106,6 +106,8 @@ coselmarControllers.controller("unauthorizedCtrl", ['$scope', function ($scope) // Controller for home when user connected, load 5 last projects coselmarControllers.controller("homeConnectedCtrl", ['$scope', 'questionsService', function ($scope, questionsService) { + if ($scope.currentUser) { + var searchOptions = {'limit' : 5, 'page' : 0}; questionsService.getQuestions(searchOptions, function(questions) { @@ -113,6 +115,7 @@ coselmarControllers.controller("homeConnectedCtrl", ['$scope', 'questionsService }, function(fail) { $scope.questions = []; }); + } }]); -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
participants (1)
-
codelutin.com scm