Skip to content

Commit af37657

Browse files
committed
add readingNames array
1 parent e4cd31b commit af37657

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

components/rsptx/templates/assignment/student/doAssignment.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,11 @@ <h3>Questions</h3>
241241

242242
let subchapList = []
243243
let qlist = []
244+
let subchapNames = []
244245
for (let chapter in readingsInfo) {
245246
for (let subchapter of readingsInfo[chapter]['subchapters']) {
246247
subchapList.push(subchapter['subchapter']);
248+
subchapNames.push(subchapter['name']);
247249
}
248250
}
249251
for (let q of questionInfo) {
@@ -253,6 +255,7 @@ <h3>Questions</h3>
253255
'name': "{{ assignment['name'] }}",
254256
'id': assignmentId,
255257
'readings': subchapList,
258+
'readingNames': subchapNames,
256259
'questions': qlist
257260
};
258261
localStorage.setItem("currentAssignmentInfo", JSON.stringify(assignmentInfo));

0 commit comments

Comments
 (0)