Index: lams_tool_forum/web/WEB-INF/tags/Page.tag =================================================================== diff -u -rbec5a4167574944062fb75e0a30fd04683003a12 -r08220e7bf6e87c8274a307060267c9ff7374140d --- lams_tool_forum/web/WEB-INF/tags/Page.tag (.../Page.tag) (revision bec5a4167574944062fb75e0a30fd04683003a12) +++ lams_tool_forum/web/WEB-INF/tags/Page.tag (.../Page.tag) (revision 08220e7bf6e87c8274a307060267c9ff7374140d) @@ -19,7 +19,7 @@ <%-- Combined tab and navigation bar used in authoring and monitoring --%> -
+
@@ -144,19 +144,21 @@ } $(document).ready(function() { - var showControlBar = true; + var showControlBar = 1; // 0/1/2 none/full/keep space var showIM = true; - if ( window.frameElement ) { // parallel + if ( window.name.match("LearnerActivity") || window.parent.name.match("LearnerActivity")) { + // popup window + showControlBar = 0; + showIM = false; + } else if ( window.frameElement ) { // parallel var myId = window.frameElement.id; if ( myId ) { if ( myId == 'lamsDynamicFrame0' ) { showIM = false; - } else if ( myId == 'lamsDynamicFrame1' ) { - showControlBar = false; + } else if ( myId == 'lamsDynamicFrame1') { + showControlBar = 2; } } - } else { // test for popup window - showControlBar = ( window.name.match("LearnerActivity") == null ); } if ( lessonId != "" || toolSessionId != "" ) { @@ -173,11 +175,13 @@ lessonId = result.lessonID; - if ( showControlBar ) { + if ( showControlBar == 1 ) { allowRestart = result.allowRestart; $('.lessonName').html(result.title); fillProgressBar('learnerMainBar'); $('#navcontent').addClass('navcontent'); + } else if ( showControlBar == 2 ) { + $('#navcontent').addClass('navcontent'); } var presenceEnabledPatch = result.presenceEnabledPatch; @@ -233,7 +237,7 @@ <%-- end of sidebar stuff - only used if in learner screen --%>