.
diff --git a/main/newscorm/scorm_api.php b/main/newscorm/scorm_api.php
index 7638a860b8..8423638160 100644
--- a/main/newscorm/scorm_api.php
+++ b/main/newscorm/scorm_api.php
@@ -1,4 +1,4 @@
-set_score())
xajax_save_item(lms_lp_id, lms_user_id, lms_view_id, lms_item_id, myscore, mymax);
}
+
/**
* Logs information about SCORM messages into the log frame
* @param string Message to log
* @param integer Priority (0 for top priority, 3 for lowest)
*/
function logit_scorm(message,priority){
+
if(scorm_logs>priority){
- if(frames["lp_log_name"] && frames["lp_log_name"].document && frames["lp_log_name"].document.getElementById && frames["lp_log_name"].document.getElementById('log_content')){
- frames["lp_log_name"].document.getElementById("log_content").innerHTML += "SCORM: " + message + "
";
+ if($("#lp_log_name") && $("#log_content")){
+ $("#log_content").append("SCORM: " + message + "
");
}
}
+
}
+
/**
* Logs information about LMS activity into the log frame
* @param string Message to log
* @param integer Priority (0 for top priority, 3 for lowest)
*/
function logit_lms(message,priority){
- if(lms_logs>priority){
- if(frames["lp_log_name"] && frames["lp_log_name"].document && frames["lp_log_name"].document.getElementById && frames["lp_log_name"].document.getElementById('log_content')){
- frames["lp_log_name"].document.getElementById("log_content").innerHTML += "LMS: " + message + "
";
+ if(lms_logs>priority){
+ if ($("#lp_log_name") && $("#log_content")) {
+ $("#log_content").append("LMS: " + message + "
");
}
}
}