Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 9d029c8

Browse files
committed
Change: prevent refresh on grading page
1 parent 2cfbdad commit 9d029c8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

runestone/common/js/bookfuncs.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,10 @@ function handlePageSetup() {
180180
}
181181
$(document).trigger("runestone:login");
182182
addReadingList();
183-
timedRefresh();
183+
// Avoid the timedRefresh on the grading page.
184+
if (window.location.pathname.indexOf("/admin/grading") == -1) {
185+
timedRefresh();
186+
}
184187
} else {
185188
mess = "Not logged in";
186189
$(document).trigger("runestone:logout");

0 commit comments

Comments
 (0)