@pie-element/ebsr 14.2.4 → 14.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/configure/CHANGELOG.md +13 -0
- package/configure/package.json +3 -3
- package/controller/CHANGELOG.md +6 -0
- package/controller/package.json +2 -2
- package/module/configure.js +1 -1
- package/module/controller.js +4 -15
- package/module/element.js +1 -1
- package/module/index.html +1 -1
- package/module/manifest.json +3 -3
- package/module/print.html +1 -1
- package/module/print.js +1 -1
- package/package.json +3 -3
package/module/controller.js
CHANGED
|
@@ -2710,6 +2710,10 @@ const getShuffledChoices = (choices, session, updateSession, choiceKey) =>
|
|
|
2710
2710
|
* - true - that means that the order of the choices will be ordinal (as is created in the configure item)
|
|
2711
2711
|
* - false - that means the getShuffledChoices above will be called and that in turn means that we either
|
|
2712
2712
|
* return the shuffled values on the session (if any exists) or we shuffle the choices
|
|
2713
|
+
*
|
|
2714
|
+
* Note: the role (student/instructor) is intentionally not considered here — instructor mode
|
|
2715
|
+
* will respect the same `lockChoiceOrder` value as students, instead of forcing the order to be locked.
|
|
2716
|
+
*
|
|
2713
2717
|
* @param model - model to check if we should lock order
|
|
2714
2718
|
* @param session - session to check if we should lock order
|
|
2715
2719
|
* @param env - env to check if we should lock order
|
|
@@ -2726,21 +2730,6 @@ const lockChoices = (model, session, env) => {
|
|
|
2726
2730
|
return true;
|
|
2727
2731
|
}
|
|
2728
2732
|
|
|
2729
|
-
const role = get$1(env, 'role', 'student');
|
|
2730
|
-
|
|
2731
|
-
if (role === 'instructor') {
|
|
2732
|
-
// TODO: .. in the future the instructor can toggle between ordinal and shuffled here, so keeping this code until then
|
|
2733
|
-
/*const alreadyShuffled = hasShuffledValues(session);
|
|
2734
|
-
|
|
2735
|
-
if (alreadyShuffled) {
|
|
2736
|
-
return false;
|
|
2737
|
-
}
|
|
2738
|
-
|
|
2739
|
-
return true;*/
|
|
2740
|
-
return true;
|
|
2741
|
-
}
|
|
2742
|
-
|
|
2743
|
-
// here it's a student, so don't lock and it will shuffle if needs be
|
|
2744
2733
|
return false;
|
|
2745
2734
|
};
|
|
2746
2735
|
|