Index: lams_monitoring/web/monitorTour.jsp
===================================================================
diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r6f1fed4f14cf4217a48f7b4a0f31d77f280d542c
--- lams_monitoring/web/monitorTour.jsp (.../monitorTour.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80)
+++ lams_monitoring/web/monitorTour.jsp (.../monitorTour.jsp) (revision 6f1fed4f14cf4217a48f7b4a0f31d77f280d542c)
@@ -3,23 +3,24 @@
function startTour() {
var selectedTabID = getCurrentTabID();
- var startStep = 0;
+ var startStep;
if ( selectedTabID == 2 ) {
- startStep = 10;
+ startStep = 15;
} else if ( selectedTabID == 3 ) {
- startStep = 18;
+ startStep = 23;
} else if ( selectedTabID == 4 ) {
- startStep = 24;
+ startStep = 29;
}
tourInProgress = true;
$('.tour-button').prop('disabled', true);
if ( tour == null ) {
tour = new Tour({
+ framework: "bootstrap3",
name: "LAMSMonitorTour",
steps: [
- {
+ { // 0
title: "",
content: "",
orphan: true
@@ -38,12 +39,12 @@
title: "",
content: "",
placement: "bottom",
- },{
+ },{
element: "#lessonStateLabel:first-child",
title: "",
content: "
",
placement: "right",
- },{
+ },{ // 5
element: "#tour-learner-count",
title: "",
content: "
",
@@ -63,12 +64,12 @@
title: "",
content: "",
placement: "top",
- },{
+ },{
element: "#editIntroButton",
title: "",
content: "",
placement: "top",
- },{
+ },{ // 10
element: "#gradebookOnCompleteButton",
title: "",
content: "",
@@ -90,16 +91,17 @@
title: "",
content: "",
placement: "bottom"
- },{
+ },{
element: "#chartDiv",
title: "",
content: "",
placement: "left",
onNext: switchToSequence
- },{
+ },{ // 15
title: "",
content: "",
orphan: true,
+ delayOnElement: { delayElement: "#sequenceTopButtonsContainer", maxDelay: 2000 },
onPrev: switchToLesson
},{
element: "#sequenceCanvas",
@@ -119,41 +121,43 @@
content: "",
placement: "top",
backdrop: true
- },{
+ },{
element: "#sequenceCanvas",
title: "",
content: "",
placement: "top",
backdrop: true
- },{
+ },{ // 20
element: "#completedLearnersContainer",
title: "",
content: "",
placement: "top",
backdrop: true
},{
- element: "#sequenceSearchPhrase",
- title: "",
- content: "",
- placement: "bottom",
- },{
element: "#liveEditButton",
title: "",
content: "",
- placement: "left",
- onNext: switchToLearners
+ placement: "left"
},{
+ element: "#sequenceSearchPhrase",
+ title: "",
+ content: "",
+ delayOnElement: { delayElement: "element", maxDelay: 2000 },
+ onNext: switchToLearners,
+ placement: "bottom"
+ },{
title: "",
content: "",
orphan: true,
+ delayOnElement: { delayElement: "#tabLearnerControlTable", maxDelay: 2000 },
onPrev: switchToSequence
- },{
+ },{
element: "#tabLearnersContainer",
title: "",
content: "
",
placement: "top",
backdrop: true,
- },{
+ },{ // 25
element: "#learnersSearchPhrase",
title: "",
content: "",
@@ -173,14 +177,16 @@
title: "",
content: "",
placement: "left",
+ delayOnElement: { delayElement: "element", maxDelay: 2000 },
onNext: switchToGradebook
- },{
+ },{
element: "#userView",
title: "",
content: "",
placement: "top",
+ delayOnElement: { delayElement: "#gradebookTopButtonsContainer", maxDelay: 2000 },
onPrev: switchToLearners
- },{
+ },{ // 30
element: "#activityView",
title: "",
content: "",
@@ -201,14 +207,14 @@
content: "",
placement: "bottom",
onNext: showMarkChart
- },{
+ },{
element: "#markChartDiv",
title: "",
content: "",
backdrop: true,
placement: "top",
onNext: hideMarkChart
- },{
+ },{ // 35
element: "#tour-weight-button",
title: "",
content: "",
@@ -220,7 +226,7 @@
content: "",
placement: "bottom",
onPrev: showMarkChart
- },{
+ },{ // 37
title: "",
content: "
",
placement: "top",
@@ -231,17 +237,23 @@
debug: true,
backdrop: false,
storage: false,
- template: ' '
+ showProgressText: false,
+ showProgressBar: true,
+ sanitizeWhitelist: { "button" : ["data-morehelp"] },
+ template: '
'
});
- tour.init();
tour.start(true);
} else {
tour.restart();
}
- tour.goTo(startStep);
+ if ( startStep ) {
+ tour.goTo(startStep);
+ }
+
+ $("body").on("click","button.morehelp", openWikiHelp);
}
function revealIM(tour) {
@@ -298,8 +310,6 @@
function switchToGradebook() {
actualDoSelectTab(4);
var check = 0;
-
- "#gradebookLoading"
}
function tourEnd() {