mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-12 00:28:11 +00:00
better order of outputs
This commit is contained in:
parent
f7407cfe5c
commit
0b568d6b40
@ -67,11 +67,10 @@ var schema = {
|
||||
|
||||
function end_trial() {
|
||||
|
||||
if (trial.schema.onSubmit.onclick != undefined) {
|
||||
var customized_output = undefined;
|
||||
if (trial.schema.onSubmit.onclick != undefined)
|
||||
var customized_output = docReady(trial.schema.onSubmit.onclick);
|
||||
if (customized_output)
|
||||
trial_data["#Customized Output#"] = customized_output;
|
||||
}
|
||||
|
||||
|
||||
for (var i = 0; i < questions.length; i++) {
|
||||
var question = questions[i]
|
||||
@ -176,6 +175,9 @@ var schema = {
|
||||
trial_data[key] = value;
|
||||
}
|
||||
|
||||
if (customized_output)
|
||||
trial_data["#Customized Output#"] = customized_output;
|
||||
|
||||
display_element.html('');
|
||||
jsPsych.finishTrial(trial_data);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user