Index: lams_monitoring/web/monitorTour.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_monitoring/web/Attic/monitorTour.jsp,v
diff -u -r1.1.2.4 -r1.1.2.5
--- lams_monitoring/web/monitorTour.jsp 4 May 2017 04:17:54 -0000 1.1.2.4
+++ lams_monitoring/web/monitorTour.jsp 10 May 2017 07:14:23 -0000 1.1.2.5
@@ -8,6 +8,8 @@
startStep = 10;
} else if ( selectedTabID == 3 ) {
startStep = 18;
+ } else if ( selectedTabID == 4 ) {
+ startStep = 24;
}
tourInProgress = true;
@@ -146,15 +148,56 @@
title: "",
content: "",
placement: "left",
+ onNext: switchToGradebook
},{
+ element: "#userView",
+ title: "",
+ content: "",
+ placement: "top",
+ onPrev: switchToLearners
+ },{
+ element: "#activityView",
+ title: "",
+ content: "",
+ placement: "top"
+ },{
+ element: "#export-grades-button",
+ title: "",
+ content: "",
+ placement: "bottom"
+ },{
+ element: "#tour-release-marks",
+ title: "",
+ content: "",
+ placement: "bottom"
+ },{
+ element: "#tour-mark-chart-button",
+ title: "",
+ content: "",
+ placement: "bottom",
+ onNext: showMarkChart
+ },{
+ element: "#markChartDiv",
+ title: "",
+ content: "",
+ backdrop: true,
+ placement: "top",
+ onNext: hideMarkChart
+ },{
+ element: "#tour-dates",
+ title: "",
+ content: "",
+ placement: "bottom",
+ onPrev: showMarkChart
+ },{
title: "",
content: "
",
placement: "top",
orphan: true
}
],
onEnd: tourEnd,
- debug: false,
+ debug: true,
backdrop: false,
storage: false,
template: ' '
@@ -195,6 +238,19 @@
$("#openImButton").css('display', 'none');
}
}
+
+ // These two functions call functions from gradebook page so do not risk breaking tour if they are missing or broken
+ function showMarkChart() {
+ try{
+ showMarkChart();
+ } catch(e){};
+ }
+
+ function hideMarkChart() {
+ try{
+ hideMarkChart();
+ } catch(e){};
+ }
function switchToLesson() {
actualDoSelectTab(1);
@@ -207,6 +263,13 @@
function switchToLearners() {
actualDoSelectTab(3);
}
+
+ function switchToGradebook() {
+ actualDoSelectTab(4);
+ var check = 0;
+
+ "#gradebookLoading"
+ }
function tourEnd() {
tourInProgress = false;