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

Commit 368e8bf

Browse files
committed
Comment remaining sections of bookfuncs.
1 parent ddd1da9 commit 368e8bf

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

runestone/common/js/bookfuncs.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
2626
*/
2727

28+
//
29+
// Logging functions
30+
//
2831

2932
function logBookEvent(eventInfo) {
3033
eventInfo.course = eBookConfig.course;
@@ -41,6 +44,10 @@ function logRunEvent(eventInfo) {
4144
}
4245

4346

47+
//
48+
// Grading functions
49+
//
50+
4451
function comment(blockid) {
4552
$.modal('<iframe width="600" height="400" src="/getcomment?id=' + blockid + '" style="background-color: white">', {
4653
//$.modal('<form><textarea name="content"></textarea><input type="submit" name="submit" > </form>', {
@@ -64,6 +71,11 @@ function sendComment(comment, sid, acid, id) {
6471
jQuery.get(eBookConfig.ajaxURL + 'savegrade', data);
6572
}
6673

74+
//
75+
// User login and page decoration functions
76+
//
77+
78+
6779
function gotUser(data, status, whatever) {
6880
var mess = '';
6981
var caughtErr = false;
@@ -196,6 +208,11 @@ function setNumUsers(data) {
196208
}
197209

198210

211+
//
212+
// Nice interface for localstore -- Thanks acbart
213+
//
214+
//
215+
199216
var storage = {
200217
set: function (directive, value) {
201218
localStorage.setItem(directive + "_value", value);
@@ -218,6 +235,10 @@ var storage = {
218235
},
219236
};
220237

238+
//
239+
// delay function used by VT to autosave some component data
240+
//
241+
221242
var timers = {};
222243
function addDelay(directive, action, delay) {
223244
if (delay === undefined) {

0 commit comments

Comments
 (0)