Skip to content

Commit

Permalink
Learnpath : enabling all item type to be followed even if in a scorm …
Browse files Browse the repository at this point in the history
…LP -refs BT#20309
  • Loading branch information
NicoDucou committed Oct 31, 2022
1 parent 2220dc5 commit 8fbc9c5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main/lp/scorm_api.php
Expand Up @@ -261,7 +261,7 @@ function APIobject() {
});

// This code was moved inside LMSInitialize()
if (olms.lms_lp_type == 1 || olms.lms_item_type == 'asset' || olms.lms_item_type == 'document' || olms.lms_item_type == 'link') {
if (olms.lms_item_type != 'sco') {
xajax_start_timer();
}

Expand Down Expand Up @@ -349,7 +349,7 @@ function LMSInitialize() {
$("#tab-iframe").addClass("tab-content iframe_"+olms.lms_item_type);
}

if (olms.lms_lp_type == 1 || olms.lms_item_type == 'asset' || olms.lms_item_type == 'document' || olms.lms_item_type == 'link') {
if (olms.lms_item_type != 'sco') {
xajax_start_timer();
}

Expand Down Expand Up @@ -1148,7 +1148,7 @@ function addListeners(){
return;
}
//assign event handlers to objects
if (olms.lms_lp_type==1 || olms.lms_item_type=='asset' || olms.lms_item_type == 'document' || olms.lms_item_type == 'link') {
if (olms.lms_item_type != 'sco') {
logit_lms('Chamilo LP or asset');
//if this path is a Chamilo learnpath, then start manual save
//when something is loaded in there
Expand Down Expand Up @@ -1212,7 +1212,7 @@ function lms_save_asset() {
olms.execute_stats = true;
}

if (olms.lms_lp_type == 1 || olms.lms_item_type == 'asset' || olms.lms_item_type == 'document' || olms.lms_item_type == 'link') {
if (olms.lms_item_type != 'sco') {
logit_lms('lms_save_asset');
logit_lms('execute_stats :'+ olms.execute_stats);
xajax_save_item(
Expand Down Expand Up @@ -1724,7 +1724,7 @@ function switch_item(current_item, next_item)
<?php
} ?>

if (olms.lms_lp_type==1 || olms.lms_item_type == 'asset' || olms.lms_item_type == 'document' || olms.lms_item_type == 'link') {
if (olms.lms_item_type != 'sco') {
xajax_start_timer();
}

Expand Down Expand Up @@ -1907,7 +1907,7 @@ function xajax_save_item(
params += '&userNavigatesAway='+userNavigatesAway;
params += '&statusSignalReceived='+statusSignalReceived;

if (olms.lms_lp_type == 1 || item_type == 'document' || item_type == 'link' || item_type == 'asset') {
if (item_type != 'sco') {
logit_lms('xajax_save_item with params:' + params, 3);
return $.ajax({
type:"POST",
Expand Down

0 comments on commit 8fbc9c5

Please sign in to comment.