Commit 7d7543a2 authored by Stephane Glondu's avatar Stephane Glondu
Browse files

Fix synchronous booth

parent e2fd1359
......@@ -407,7 +407,7 @@ HELIOS.EncryptedAnswer.fromJSONObject = function(d, election) {
};
HELIOS.EncryptedVote = Class.extend({
init: function(election, answers, progress) {
init: function(election, answers, id, progress) {
// empty constructor
if (election == null)
return;
......@@ -437,7 +437,7 @@ HELIOS.EncryptedVote = Class.extend({
// loop through questions
for (var i=0; i<n_questions; i++) {
this.encrypted_answers[i] = new HELIOS.EncryptedAnswer(election.questions[i], answers[i], election.public_key, progress);
this.encrypted_answers[i] = new HELIOS.EncryptedAnswer(election.questions[i], answers[i], election.public_key, id, progress);
}
},
......
......@@ -468,7 +468,7 @@ BOOTH.seal_ballot_raw = function() {
if (BOOTH.synchronous) {
BOOTH.progress = new UTILS.PROGRESS();
var progress_interval = setInterval("BOOTH.check_encryption_status()", 500);
BOOTH.encrypted_ballot = new HELIOS.EncryptedVote(BOOTH.election, BOOTH.ballot.answers, BOOTH.progress, BOOTH.voter_id);
BOOTH.encrypted_ballot = new HELIOS.EncryptedVote(BOOTH.election, BOOTH.ballot.answers, BOOTH.voter_id, BOOTH.progress);
BOOTH.encrypted_ballot.doSignature(BOOTH.credential);
clearInterval(progress_interval);
BOOTH._after_ballot_encryption();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment