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