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 f7f716dd1b92160d4b23199d67228371bf0c2a05 Author: Yannick Martel <martel@©odelutin.com> Date: Fri Jan 23 17:23:01 2015 +0100 fix default locale --- coselmar-ui/src/main/webapp/js/coselmar-controllers.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/coselmar-ui/src/main/webapp/js/coselmar-controllers.js b/coselmar-ui/src/main/webapp/js/coselmar-controllers.js index 2312bea..154fd7e 100644 --- a/coselmar-ui/src/main/webapp/js/coselmar-controllers.js +++ b/coselmar-ui/src/main/webapp/js/coselmar-controllers.js @@ -63,9 +63,7 @@ coselmarControllers.controller("HomeCtrl", ['$scope', '$http', '$location', '$ro // i18n Management $scope.locale = localStorage.getItem('coselmar-locale'); - console.log($scope.locale); - - if (angular.isUndefined($scope.locale)) { + if (!$scope.locale) { // set locale with browser preference $scope.locale = navigator.language || navigator.userLanguage; $scope.locale = $scope.locale.substring(0,2); -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.