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

Commit 72ecdb8

Browse files
authored
Merge pull request #1213 from bjones1/fix_dnd
Fix: Match name sent to server with table name in db for dnd.
2 parents c1330cf + fd82dc4 commit 72ecdb8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

runestone/dragndrop/js/dragndrop.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ export default class DragNDrop extends RunestoneBase {
403403
event: "dragNdrop",
404404
act: answer,
405405
answer: answer,
406-
minHeight: this.minheight,
406+
min_height: this.minheight,
407407
div_id: this.divid,
408408
correct: this.correct,
409409
correctNum: this.correctNum,
@@ -454,7 +454,7 @@ export default class DragNDrop extends RunestoneBase {
454454
restoreAnswers(data) {
455455
// Restore answers from storage retrieval done in RunestoneBase
456456
this.hasStoredDropzones = true;
457-
this.minheight = data.minHeight;
457+
this.minheight = data.min_height;
458458
this.pregnantIndexArray = data.answer.split(";");
459459
this.finishSettingUp();
460460
}
@@ -471,7 +471,7 @@ export default class DragNDrop extends RunestoneBase {
471471
this.hasStoredDropzones = true;
472472
try {
473473
storedObj = JSON.parse(ex);
474-
this.minheight = storedObj.minHeight;
474+
this.minheight = storedObj.min_height;
475475
} catch (err) {
476476
// error while parsing; likely due to bad value stored in storage
477477
console.log(err.message);
@@ -488,7 +488,7 @@ export default class DragNDrop extends RunestoneBase {
488488
event: "dragNdrop",
489489
act: answer,
490490
answer: answer,
491-
minHeight: this.minheight,
491+
min_height: this.minheight,
492492
div_id: this.divid,
493493
correct: storedObj.correct,
494494
});
@@ -522,7 +522,7 @@ export default class DragNDrop extends RunestoneBase {
522522
var correct = data.correct;
523523
var storageObj = {
524524
answer: this.pregnantIndexArray.join(";"),
525-
minHeight: this.minheight,
525+
min_height: this.minheight,
526526
timestamp: timeStamp,
527527
correct: correct,
528528
};

0 commit comments

Comments
 (0)