Skip to content

Commit 4cb2d6d

Browse files
committed
Try to avoid readings in peer+ assignments
1 parent 245649f commit 4cb2d6d

File tree

1 file changed

+7
-1
lines changed
  • bases/rsptx/web2py_server/applications/runestone/static/js

1 file changed

+7
-1
lines changed

bases/rsptx/web2py_server/applications/runestone/static/js/admin.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -1616,6 +1616,10 @@ async function updateReading(
16161616
alert("No assignment selected");
16171617
return;
16181618
}
1619+
if (document.forms["assignment-form"].assign_is_peer.checked) {
1620+
alert("Peer assignments cannot have readings");
1621+
return;
1622+
}
16191623
let res = await $.ajax({
16201624
url: "add__or_update_assignment_question",
16211625
data: {
@@ -1992,7 +1996,9 @@ async function renderRunestoneComponent(componentSrc, whereDiv, moreOpts) {
19921996
}
19931997

19941998
if (typeof component_factory === "undefined") {
1995-
alert("Error: Missing the component factory! Clear your browser cache.");
1999+
alert(
2000+
"Error: Missing the component factory! probably a webpack version mismatch"
2001+
);
19962002
} else {
19972003
if (!component_factory[componentKind] && !jQuery(`#${whereDiv}`).html()) {
19982004
jQuery(`#${whereDiv}`).html(

0 commit comments

Comments
 (0)