Commit 788f8d1
committed
Add a scaffold
The default value is 1, and in that case scaffolds will continue to
behave as they currently do. If this option is set to 0, then when an
answer preview occurs, the scaffold state will remain the same as before
the preview occured. Opened scaffolds will stay open, closed scaffolds
will stay closed, and scaffolds that could't be opened still can't be
opened. Note this refers to the initial open/closed state when the
problem loads, and does not respect opening or closing of scaffolds
(that can be opened or closed) by the user.
This uses the persistence hash to store the state. Note that state is
really the scores for all answers in scaffold sections. It is important
to note that state is usually not saved by the frontend until an answer
submission occurs (although it is saved in a hidden form field for
instructors), and if there is no state, then it assumes the problem is
in its initial state, and uses scores of 0 for all answers.preview_can_change_state option that determines behavior when preview is used.1 parent 1936e20 commit 788f8d1
1 file changed
Lines changed: 22 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
187 | 197 | | |
188 | 198 | | |
189 | 199 | | |
| |||
353 | 363 | | |
354 | 364 | | |
355 | 365 | | |
| 366 | + | |
356 | 367 | | |
357 | 368 | | |
358 | 369 | | |
| |||
536 | 547 | | |
537 | 548 | | |
538 | 549 | | |
| 550 | + | |
| 551 | + | |
539 | 552 | | |
540 | 553 | | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
541 | 557 | | |
542 | 558 | | |
543 | | - | |
544 | | - | |
545 | | - | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
546 | 563 | | |
547 | 564 | | |
548 | 565 | | |
| 566 | + | |
| 567 | + | |
549 | 568 | | |
550 | 569 | | |
551 | 570 | | |
| |||
0 commit comments