|
|
|
|
@ -446,6 +446,13 @@ function LMSSetValue(param, val) { |
|
|
|
|
if(myres = param.match(/cmi.interactions.(\d+).(id|time|type|correct_responses|weighting|student_response|result|latency)(.*)/)) |
|
|
|
|
{ |
|
|
|
|
elem_id = myres[1]; |
|
|
|
|
if(elem_id > interactions.length) |
|
|
|
|
{ |
|
|
|
|
G_LastError = G_InvalidArgumentError; |
|
|
|
|
return_value = false; |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
if(interactions[elem_id] == null){ |
|
|
|
|
interactions[elem_id] = ['','','','','','','','']; |
|
|
|
|
//id(0), type(1), time(2), weighting(3),correct_responses(4),student_response(5),result(6),latency(7) |
|
|
|
|
@ -498,6 +505,7 @@ function LMSSetValue(param, val) { |
|
|
|
|
G_lastError = G_NotImplementedError; |
|
|
|
|
G_lastErrorString = 'Not implemented yet'; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}else if(param.substring(0,15)== 'cmi.objectives.'){ |
|
|
|
|
var myres = ''; |
|
|
|
|
if(myres = param.match(/cmi.objectives.(\d+).(id|score|status)(.*)/)) |
|
|
|
|
|