fixing naming issue in survey-text

This commit is contained in:
Josh de Leeuw 2013-11-09 21:04:14 -05:00
parent 17deebeee4
commit 35880b0bba

View File

@ -21,7 +21,7 @@
var trials = [];
for (var i = 0; i < params.questions.length; i++) {
trials.push({
type: "survey_text",
type: "survey-text",
questions: params.questions[i],
data: (typeof params.data === 'undefined') ? {} : params.data[i]
});
@ -69,7 +69,7 @@
// save data
block.writeData($.extend({}, {
"trial_type": "survey_text",
"trial_type": "survey-text",
"trial_index": block.trial_idx,
"rt": response_time
}, question_data, trial.data));