Index: lams_central/web/WEB-INF/tags/Page.tag
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/WEB-INF/tags/Attic/Page.tag,v
diff -u -r1.1.2.7 -r1.1.2.8
--- lams_central/web/WEB-INF/tags/Page.tag 29 Jul 2016 00:01:13 -0000 1.1.2.7
+++ lams_central/web/WEB-INF/tags/Page.tag 29 Jul 2016 04:04:00 -0000 1.1.2.8
@@ -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
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/progressBar.js,v
diff -u -r1.13.2.8 -r1.13.2.9
--- lams_central/web/includes/javascript/progressBar.js 28 Jul 2016 03:44:16 -0000 1.13.2.8
+++ lams_central/web/includes/javascript/progressBar.js 29 Jul 2016 04:04:00 -0000 1.13.2.9
@@ -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