This is an automated email from the git hooks/post-receive script. unknown user pushed a commit to branch devel in repository Pollen. commit 65f9744d94537d1db568cdf8d41cec8911d6355c Author: Adrien Garandel <a.garandel@dralagen.fr> Date: Thu May 22 17:16:28 2014 +0200 print result in vote page --- pollen-ui-angular/src/main/webapp/js/controllers/pollCtrl.js | 8 ++++++++ pollen-ui-angular/src/main/webapp/partials/poll-result.html | 4 ++++ 2 files changed, 12 insertions(+) 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 3bb1029..02a6b82 100644 --- a/pollen-ui-angular/src/main/webapp/js/controllers/pollCtrl.js +++ b/pollen-ui-angular/src/main/webapp/js/controllers/pollCtrl.js @@ -305,6 +305,14 @@ angular.module('pollControllers', []) }) }) }) + + Poll.get({pollId:$routeParams.pollId, cmd:'result'}, function (result) { + $scope.data.result = result; + angular.forEach(result.scores, function (value, key) { + value.choice = JSON.search($scope.data.choices, value.choiceId); + }) + console.log(result); + }) } initPoll(); diff --git a/pollen-ui-angular/src/main/webapp/partials/poll-result.html b/pollen-ui-angular/src/main/webapp/partials/poll-result.html new file mode 100644 index 0000000..ec74732 --- /dev/null +++ b/pollen-ui-angular/src/main/webapp/partials/poll-result.html @@ -0,0 +1,4 @@ +<h2> Résultats :</h2> +<div ng-repeat="score in data.result.scores"> + <h3> </h3> +</div> \ No newline at end of file -- To stop receiving notification emails like this one, please contact Chorem.org SCM administrator <admin+scm@chorem.org>.
participants (1)
-
Chorem.org scm