Commit 25b1a2e7 authored by Robert Czechowski's avatar Robert Czechowski
Browse files

Fix fioi task wrapper 'wrapper.html' to save tasks on every run even in new task layout

parent 3ae3356b
...@@ -20,7 +20,7 @@ var options = { ...@@ -20,7 +20,7 @@ var options = {
noScore:0, noScore:0,
randomSeed:0, randomSeed:0,
readOnly:false, readOnly:false,
options:{difficulty:"easy"}, options:{difficulty:"easy", log:1},
} }
var myLoadViews = { var myLoadViews = {
...@@ -115,6 +115,10 @@ function getTaskProxyCallback(task) { ...@@ -115,6 +115,10 @@ function getTaskProxyCallback(task) {
else if (mode == 'next' || mode == 'nextImmediate') { else if (mode == 'next' || mode == 'nextImmediate') {
window.parent.redirectOverview(); window.parent.redirectOverview();
} }
if (mode == 'log') {
task.getAnswer(getAnswerCallback, ec("task.getAnswer"));
if (cb) {cb();}
}
else { else {
console.error("Unknown mode: '" + mode + "'"); console.error("Unknown mode: '" + mode + "'");
if (ecb) {ecb();} if (ecb) {ecb();}
......
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