projects
/
qomet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bugs fixes
[qomet.git]
/
public
/
javascripts
/
monitor.js
diff --git
a/public/javascripts/monitor.js
b/public/javascripts/monitor.js
index
6c08d7a
..
07a0814
100644
(file)
--- a/
public/javascripts/monitor.js
+++ b/
public/javascripts/monitor.js
@@
-81,7
+81,11
@@
new Vue({
if (!!s.errmsg)
return alert(s.errmsg);
this.assessment = s.assessment;
if (!!s.errmsg)
return alert(s.errmsg);
this.assessment = s.assessment;
- this.answers.inputs = s.assessment.questions.map( q => { return q.answer; });
+ this.answers.inputs = s.assessment.questions.map( q => {
+ let input = _(q.options.length).times( _.constant(false) );
+ q.answer.forEach( idx => { input[idx] = true; });
+ return input;
+ });
this.students = s.students;
this.stage = 1;
socket = io.connect("/", {
this.students = s.students;
this.stage = 1;
socket = io.connect("/", {