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

Commit e54b28d

Browse files
author
Brad Miller
committed
Bug fix - typo no variable d
1 parent d964e7a commit e54b28d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

runestone/common/js/bookfuncs.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ function addReadingList() {
6666
if (eBookConfig.readings){
6767
cur_path_parts = window.location.pathname.split('/');
6868
name = cur_path_parts[cur_path_parts.length-2] + '/' + cur_path_parts[cur_path_parts.length-1];
69-
position = d.readings.indexOf(name);
70-
num_readings = d.readings.length
71-
if (position == (d.readings.length-1)){
69+
position = eBookConfig.readings.indexOf(name);
70+
num_readings = eBookConfig.readings.length
71+
if (position == (eBookConfig.readings.length-1)){
7272
// no more readings
7373
l = $("<div />", {text: `Finished reading assignment. Page ${num_readings} of ${num_readings}.`});
7474
}
7575
else if(position >= 0){
7676
// get next name
77-
nxt = d.readings[position+1];
77+
nxt = eBookConfig.readings[position+1];
7878
path_parts = cur_path_parts.slice(0,cur_path_parts.length-2 );
7979
path_parts.push(nxt);
8080
nxt_link = path_parts.join('/');

0 commit comments

Comments
 (0)