Author: garandel Date: 2014-05-15 17:37:52 +0200 (Thu, 15 May 2014) New Revision: 3952 Url: http://forge.chorem.org/projects/pollen/repository/revisions/3952 Log: autoprint new vote Modified: trunk/pollen-ui-angular/src/main/webapp/js/controllers/pollCtrl.js Modified: trunk/pollen-ui-angular/src/main/webapp/js/controllers/pollCtrl.js =================================================================== --- trunk/pollen-ui-angular/src/main/webapp/js/controllers/pollCtrl.js 2014-05-15 15:22:51 UTC (rev 3951) +++ trunk/pollen-ui-angular/src/main/webapp/js/controllers/pollCtrl.js 2014-05-15 15:37:52 UTC (rev 3952) @@ -329,6 +329,7 @@ PollVote.add({pollId:$routeParams.pollId}, sendVote, function (returnRequest) { console.log(returnRequest); + $scope.data.votants.push(angular.copy($scope.data.vote)); $scope.globalVariables.saved = true; initVote(); });