Index: lams_monitoring/web/monitorTour.jsp
===================================================================
diff -u -r8dc1d75924ecfcc0742ba8f8fff00b22f656a284 -r20f8f4f0d64597b2c74bab1335efd1cf88281da6
--- lams_monitoring/web/monitorTour.jsp (.../monitorTour.jsp) (revision 8dc1d75924ecfcc0742ba8f8fff00b22f656a284)
+++ lams_monitoring/web/monitorTour.jsp (.../monitorTour.jsp) (revision 20f8f4f0d64597b2c74bab1335efd1cf88281da6)
@@ -1,8 +1,18 @@
<%-- The definition of Bootstrap Tour for monitor.jsp. Use storage: false so that it always starts at the first step otherwise the multiple tabs confuses matters. --%>
var tour = null;
function startTour() {
- debugger;
+
+ var selectedTabID = getCurrentTabID();
+ var startStep = 0;
+ if ( selectedTabID == 2 ) {
+ startStep = 10;
+ } else if ( selectedTabID == 3 ) {
+ startStep = 18;
+ }
+
tourInProgress = true;
+ $('.tour-button').prop('disabled', true);
+
if ( tour == null ) {
tour = new Tour({
name: "LAMSMonitorTour",
@@ -20,11 +30,6 @@
element: "#tour-refresh-button",
title: "",
content: "",
- placement: "bottom",
- }, {
- element: "#tour-help-button",
- title: "",
- content: "",
placement: "left",
},{
element: "#lessonStateLabel:first-child",
@@ -62,7 +67,7 @@
element: "#chartDiv",
title: "",
content: "",
- placement: "bottom",
+ placement: "left",
onNext: switchToSequence
},{
title: "",
@@ -108,7 +113,7 @@
element: "#liveEditButton",
title: "",
content: "",
- placement: "bottom",
+ placement: "left",
onNext: switchToLearners
},{
title: "",
@@ -149,9 +154,11 @@
}
],
onEnd: tourEnd,
- debug: true,
+ debug: false,
backdrop: false,
- storage: false
+ storage: false,
+ template: '
'
+
});
tour.init();
@@ -160,6 +167,7 @@
} else {
tour.restart();
}
+ tour.goTo(startStep);
}
function revealIM(tour) {
@@ -202,4 +210,16 @@
function tourEnd() {
tourInProgress = false;
+ $('.tour-button').prop('disabled', false);
+ }
+
+ function openWikiHelp() {
+ var selectedTabID = getCurrentTabID();
+ var url = "http://wiki.lamsfoundation.org/display/lamsdocs/monitoringlesson";
+ if ( selectedTabID == 2 ) {
+ url = "http://wiki.lamsfoundation.org/display/lamsdocs/monitoringsequence";
+ } else if ( selectedTabID == 3 ) {
+ url = "http://wiki.lamsfoundation.org/display/lamsdocs/monitoringlearners";
+ }
+ openPopUp(url,'
', 648, 1152, false);
}
\ No newline at end of file