This is an automated email from the git hooks/post-receive script. unknown user pushed a commit to branch devel in repository Pollen. commit 46ac5366c0cdc3c5b0dd0bfe6670ba77c4918c83 Author: Adrien Garandel <a.garandel@dralagen.fr> Date: Mon May 19 12:22:31 2014 +0200 convert int to float javascript --- .../src/main/webapp/js/controllers/pollCtrl.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pollen-ui-angular/src/main/webapp/js/controllers/pollCtrl.js b/pollen-ui-angular/src/main/webapp/js/controllers/pollCtrl.js index fc7ee83..e4227df 100644 --- a/pollen-ui-angular/src/main/webapp/js/controllers/pollCtrl.js +++ b/pollen-ui-angular/src/main/webapp/js/controllers/pollCtrl.js @@ -293,7 +293,7 @@ angular.module('pollControllers', []) $scope.data.votants = votes; angular.forEach($scope.data.votants, function (vote) { angular.forEach(vote.choice, function (choice) { - if (choice.voteValue != null && choice.voteValue != 0) { + if (choice.voteValue != null && choice.voteValue != 0.0) { choice.voteValue = true; } else { @@ -320,7 +320,7 @@ angular.module('pollControllers', []) $scope.voter = function () { var sendVote = angular.copy($scope.data.vote); angular.forEach(sendVote.choice, function (choice) { - choice.voteValue = (choice.voteValue) ? 1 : 0; + choice.voteValue = (choice.voteValue) ? 1.0 : 0.0; }); PollVote.add({pollId:$routeParams.pollId}, sendVote, function (returnRequest) { -- To stop receiving notification emails like this one, please contact Chorem.org SCM administrator <admin+scm@chorem.org>.