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
/
assessment.js
diff --git
a/public/javascripts/assessment.js
b/public/javascripts/assessment.js
index
09caf12
..
9858643
100644
(file)
--- a/
public/javascripts/assessment.js
+++ b/
public/javascripts/assessment.js
@@
-129,7
+129,8
@@
let V = new Vue({
this.answers.indices = indices.concat( _.shuffle(remainingIndices) );
}
this.answers.index = !!paper ? paper.inputs.length : 0;
this.answers.indices = indices.concat( _.shuffle(remainingIndices) );
}
this.answers.index = !!paper ? paper.inputs.length : 0;
- Vue.nextTick(statementsLibsRefresh);
+ this.answers.displayAll = assessment.display == "all";
+ this.answers.showSolution = false;
this.stage = 2;
};
if (assessment.mode == "open")
this.stage = 2;
};
if (assessment.mode == "open")
@@
-223,6
+224,7
@@
let V = new Vue({
if (assessment.mode == "open")
{
this.stage = 4;
if (assessment.mode == "open")
{
this.stage = 4;
+ this.answers.showSolution = true;
return;
}
$.ajax("/end/assessment", {
return;
}
$.ajax("/end/assessment", {
@@
-248,6
+250,7
@@
let V = new Vue({
setAnswers: function(m) {
for (let i=0; i<m.answers.length; i++)
assessment.questions[i].answer = m.answers[i];
setAnswers: function(m) {
for (let i=0; i<m.answers.length; i++)
assessment.questions[i].answer = m.answers[i];
+ this.answers.showSolution = true;
this.stage = 4;
},
},
this.stage = 4;
},
},