Index: lams_central/web/WEB-INF/tags/Page.tag
===================================================================
diff -u -r5660949c6c27cabcb931fa4df1470642b0aaa4e0 -r1ab316c8f51d340b2e702dea7c3e55f76df61126
--- lams_central/web/WEB-INF/tags/Page.tag (.../Page.tag) (revision 5660949c6c27cabcb931fa4df1470642b0aaa4e0)
+++ lams_central/web/WEB-INF/tags/Page.tag (.../Page.tag) (revision 1ab316c8f51d340b2e702dea7c3e55f76df61126)
@@ -38,9 +38,8 @@
- <%-- only have sidebar and presence in learner --%>
-
-
+ <%-- only have sidebar and presence in learner main window, not in popup windows --%>
+
<%-- Links placed in body instead of head. Ugly, but it works. --%>
@@ -66,7 +65,7 @@
-
+
@@ -123,6 +122,8 @@
function onProgressBarLoaded() {
$('#exitlabel').html(LABELS.EXIT);
$('#notebooklabel').html(LABELS.NOTEBOOK);
+ $('#supportlabel').html(LABELS.SUPPORT_ACTIVITIES);
+ $('#progresslabel').html(LABELS.PROGRESS_BAR);
if ( allowRestart ) {
$('#restartlabel').html(LABELS.RESTART);
restartLessonConfirmation = LABELS.CONFIRM_RESTART;
@@ -133,7 +134,7 @@
$(document).ready(function() {
var showControlBar = true;
var showIM = true;
- if ( window.frameElement ) {
+ if ( window.frameElement ) { // parallel
var myId = window.frameElement.id;
if ( myId ) {
if ( myId == 'lamsDynamicFrame0' ) {
@@ -142,6 +143,9 @@
showControlBar = false;
}
}
+ } else { // test for popup window
+ debugger;
+ showControlBar = ( window.name.match("LearnerActivity") == null );
}
if ( lessonId != "" || toolSessionId != "" ) {
@@ -162,6 +166,7 @@
allowRestart = result.allowRestart;
$('.lessonName').html(result.title);
fillProgressBar('learnerMainBar');
+ $('#navcontent').addClass('navcontent');
$('#sidebar').show();
}
@@ -203,23 +208,21 @@
Exit
Notebook
- RestartX
-
-
+ Restart
+
+ Support Activities
+
+
+ My Progress
<%=request.getAttribute(org.apache.struts.taglib.html.Constants.BEAN_KEY)%>
-
- <%-- end of sidebar stuff - only used if in learner screen --%>
-
-
-
-
-
+ <%-- end of sidebar stuff - only used if in learner screen --%>
+
+
Index: lams_central/web/includes/javascript/progressBar.js
===================================================================
diff -u -r0ddeb3a1dcf29cbbba6ed0fccbd139f9c31c347f -r1ab316c8f51d340b2e702dea7c3e55f76df61126
--- lams_central/web/includes/javascript/progressBar.js (.../progressBar.js) (revision 0ddeb3a1dcf29cbbba6ed0fccbd139f9c31c347f)
+++ lams_central/web/includes/javascript/progressBar.js (.../progressBar.js) (revision 1ab316c8f51d340b2e702dea7c3e55f76df61126)
@@ -1038,7 +1038,9 @@
CONFIRM_RESTART : result.messages["message.learner.progress.restart.confirm"],
RESTART: result.messages["message.lesson.restart.button"],
NOTEBOOK: result.messages["label.learner.progress.notebook"],
- EXIT : result.messages["button.exit"]
+ EXIT : result.messages["button.exit"],
+ SUPPORT_ACTIVITIES : result.messages["label.learner.progress.support"],
+ PROGRESS_BAR: result.messages["label.my.progress"]
};
}
@@ -1140,14 +1142,11 @@
}
// draw support activities if they exist
- var supportSeparatorRow = $('#supportSeparatorRow');
- if (result.support && supportSeparatorRow.length > 0 && !supportSeparatorRow.is(':visible')) {
- supportSeparatorRow.show();
-
-
+ if (result.support) {
+ var svgheight = 17 + 33 * result.support.length;
// separate paper for Support Activities frame
var supportPaper = Snap();
- $('#supportPart').height(17 + 33 * result.support.length)
+ $('#supportPart').height(svgheight+5)
.append(supportPaper.node)
.show();
$.each(result.support, function(activityIndex,
@@ -1165,7 +1164,11 @@
ActivityUtils.addEffects(activity);
supportPaper.text(90, 24 + 33 * activityIndex,
activity.name).attr(DEFAULT_TEXT_ATTRIBUTES);
+ supportPaper.attr(
+ {'height' : svgheight}
+ )
});
+ $("#supportitem").show();
}
// scroll to the current activity