diff --git a/main/newscorm/lp_view.php b/main/newscorm/lp_view.php index 4cf81605f2..99139e8ad4 100644 --- a/main/newscorm/lp_view.php +++ b/main/newscorm/lp_view.php @@ -172,20 +172,121 @@ if($_SESSION['oLP']->mode == 'fullscreen') //set flag to ensure lp_header.php is loaded by this script (flag is unset in lp_header.php) $_SESSION['loaded_lp_view'] = true; ?> - - - - - - - - - - - - - This page relies heavily on frames. If your browser doesn't support frames, please try to find a better one. Some are available for free and run on multiple platforms. We recommend you try <a href="http://www.mozilla.com/firefox/">Firefox</a>. Get it from its official website by clicking the link. - +
+ +
+
get_html_toc(); ?>
+
+ +
+
+ error; ?> +
+
+
+
+ +
+
+
+
+
.
+
+ + + - - + + diff --git a/main/newscorm/scorm_api.php b/main/newscorm/scorm_api.php index bb44838c55..5f886f6494 100644 --- a/main/newscorm/scorm_api.php +++ b/main/newscorm/scorm_api.php @@ -1,4 +1,4 @@ - - return true; + //return true; } /** * Updates the progress bar with the new status. Prevents the need of a page refresh and flickering @@ -1006,19 +1006,15 @@ function switch_item(current_item, next_item){ default: break; } - var mysrc = 'lp_controller.php?action=content&lp_id='+lms_lp_id+'&item_id='+next_item+'#anchor_'+lms_lp_id; - var cont_f = $("#content_id"); - if(!cont_f){ - logit_lms('In switch - content frame not found',0); - mode == 'fullscreen'){ ?> - cont_f = window.open(''+mysrc,'content_name','toolbar=0,location=0,status=0,scrollbars=1,resizable=1'); - - return false; - - } else { - cont_f.attr("src",mysrc); - } + var mysrc = 'lp_controller.php?action=content&lp_id='+lms_lp_id+'&item_id='+next_item; + var cont_f = $("#content_id"); + mode == 'fullscreen'){ ?> + cont_f = window.open(''+mysrc,'content_name','toolbar=0,location=0,status=0,scrollbars=1,resizable=1'); + + cont_f.attr("src",mysrc); + + if(lms_lp_type==1 || lms_item_type=='asset'){ xajax_start_timer(); }