Commit f33e09d9 by chrisndodge

Merge pull request #88 from edx/cdodge/page-reload-error

Cdodge/page reload error
parents 743a4dbb 7d14663d
......@@ -100,7 +100,7 @@ var edx = edx || {};
},
unloadMessage: function () {
return gettext("Are you sure you want to leave this page? \n" +
"To pass your proctored exam you must also pass the online proctoring session review.n");
"To pass your proctored exam you must also pass the online proctoring session review.");
},
updateRemainingTime: function (self) {
self.timerTick ++;
......@@ -124,7 +124,7 @@ var edx = edx || {};
clearInterval(self.timerId); // stop the timer once the time finishes.
$(window).unbind('beforeunload', this.unloadMessage);
// refresh the page when the timer expired
this.reloadPage()
self.reloadPage();
}
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment