diff --git a/main/newscorm/lp_view.php b/main/newscorm/lp_view.php index d34d9e653a..fbcfaeb78d 100644 --- a/main/newscorm/lp_view.php +++ b/main/newscorm/lp_view.php @@ -126,17 +126,31 @@ if($_SESSION['oLP']->mode == 'fullscreen'){ $htmlHeadXtra[] = ''; + $htmlHeadXtra[] = ""; include_once('../inc/reduced_header.inc.php'); -?> - - - + //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. + + mode != 'fullscreen'){ ?> + mode != 'fullscreen'){ ?> var myframe = frames["toc_name"]; var myelem = myframe.document.getElementById("toc_"+update_id); var myelemimg = myframe.document.getElementById("toc_img_"+update_id); @@ -771,7 +771,7 @@ function update_toc(update_action,update_id) } } return true; - + return true; } /** @@ -860,8 +860,6 @@ function switch_item(current_item, next_item){ xajax_switch_item_details(lms_lp_id,lms_user_id,lms_view_id,lms_item_id,next_item); //(3) open the new item in the content_id frame - var cont_f = document.getElementById('content_id'); - if(!cont_f){logit_lms('In switch - content frame not found',0);return false;} switch(next_item){ case 'next': next_item = lms_next_item; @@ -872,7 +870,20 @@ function switch_item(current_item, next_item){ default: break; } - cont_f.src = 'lp_controller.php?action=content&lp_id='+lms_lp_id+'&item_id='+next_item; + var mysrc = 'lp_controller.php?action=content&lp_id='+lms_lp_id+'&item_id='+next_item; + var cont_f = document.getElementById('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'); + + return false; + + } + else + { + cont_f.src = mysrc; + } if(lms_lp_type==1 || lms_item_type=='asset'){ xajax_start_timer(); }