Permalink
Browse files

MDL-7886 - typo in overview report javascript.

  • Loading branch information...
1 parent 148c0de commit 9b6b1f3afa1e3f7a67742499e48726088b4cb653 tjhunt committed Dec 11, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/quiz/report/overview/report.php
@@ -448,7 +448,7 @@ function display($quiz, $cm, $course) {
if (!$download) {
// Start form
echo '<div id="tablecontainer">';
- echo '<form id="attemptsform" method="post" action="report.php" onsubmit="var menu = document.getElementById(\'menuaction\'); return (menu.options[menu.selectedIndex].value == \'delete\' ? \''.$strreallydel.'\' : true);">';
+ echo '<form id="attemptsform" method="post" action="report.php" onsubmit="var menu = document.getElementById(\'menuaction\'); return (menu.options[menu.selectedIndex].value == \'delete\' ? confirm(\''.$strreallydel.'\') : true);">';
echo '<input type="hidden" name="id" value="'.$cm->id.'" />';
echo '<input type="hidden" name="mode" value="overview" />';

0 comments on commit 9b6b1f3

Please sign in to comment.