Close an open ordering slide on "next" before moving on
Forward in the presenter view now reveals the solution first (like the quiz build steps) instead of skipping straight to the next slide. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0f91377de3
commit
7fd4a0da8c
3 files changed
+27
-1
No files matched your search
@@ -236,7 +236,8 @@ class AdminController extends AdminAppController
|
||||
*
|
||||
* On a Q&A slide that is being discussed, next/prev step through the questions
|
||||
* first (like builds in presentation software); on a quiz, next starts it and then ends it
|
||||
* before moving on, prev always goes to the previous slide. While paused, next/prev resume
|
||||
* before moving on, on an open ordering slide next closes it (reveals the solution),
|
||||
* prev always goes to the previous slide. While paused, next/prev resume
|
||||
* the slide that was live before.
|
||||
*
|
||||
* Answers with the new state as JSON for XHR requests, otherwise redirects back.
|
||||
@@ -270,6 +271,12 @@ class AdminController extends AdminAppController
|
||||
}
|
||||
}
|
||||
|
||||
// Same for an ordering slide: forward first closes the voting (reveals the solution).
|
||||
if ($current !== null && $current->isOrder() && $action === 'next' && $current->isVotingOpen()) {
|
||||
(new SlideControlService())->apply($current, 'close');
|
||||
$action = 'none';
|
||||
}
|
||||
|
||||
switch ($action) {
|
||||
case 'none':
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user