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

Commit 69ac81e

Browse files
committed
fixing select question
1 parent cb09d4b commit 69ac81e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

runestone/hparsons/js/hparsons-sql.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if (hpList === undefined) hpList = {};
1111

1212
import "./horizontal-parsons.js";
1313

14-
export default class SQLHParons extends RunestoneBase {
14+
export default class SQLHParsons extends RunestoneBase {
1515
constructor(opts) {
1616
super(opts);
1717
// copied from activecode
@@ -160,6 +160,7 @@ export default class SQLHParons extends RunestoneBase {
160160
}
161161
}
162162

163+
163164
/*=================================
164165
== Find the custom HTML tags and ==
165166
== execute our code on them ==
@@ -169,7 +170,7 @@ $(document).on("runestone:login-complete", function () {
169170
if ($(this).closest("[data-component=timedAssessment]").length == 0) {
170171
// If this element exists within a timed component, don't render it here
171172
// try {
172-
hpList[this.id] = new SQLHParons({
173+
hpList[this.id] = new SQLHParsons({
173174
orig: this,
174175
useRunestoneServices: eBookConfig.useRunestoneServices,
175176
});
@@ -180,3 +181,10 @@ $(document).on("runestone:login-complete", function () {
180181
}
181182
});
182183
});
184+
185+
if (typeof window.component_factory === "undefined") {
186+
window.component_factory = {};
187+
}
188+
window.component_factory["hparsons"] = function (opts) {
189+
return new SQLHParsons(opts);
190+
};

0 commit comments

Comments
 (0)