mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Add a javascript confirmation when submitting a quiz attempt
This commit is contained in:
parent
776dc2709f
commit
9307692fdf
2 changed files with 4 additions and 1 deletions
|
@ -411,7 +411,9 @@ function quiz_print_quiz_questions($quiz, $results=NULL) {
|
|||
return false;
|
||||
}
|
||||
|
||||
echo "<FORM METHOD=POST ACTION=attempt.php>";
|
||||
$strconfirmattempt = addslashes(get_string("readytosend", "quiz"));
|
||||
|
||||
echo "<FORM METHOD=POST ACTION=attempt.php onsubmit=\"return confirm('$strconfirmattempt');\">";
|
||||
echo "<INPUT TYPE=hidden NAME=q VALUE=\"$quiz->id\">";
|
||||
|
||||
foreach ($questions as $key => $questionid) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue