Fixing the behavior of (de)select all javascript links, closing bug 2688.

Also, some very slight HTML improvements on the way there.
This commit is contained in:
defacer 2005-03-18 14:46:11 +00:00
parent df349d1dda
commit 5d38e78fdf

View file

@ -1415,10 +1415,9 @@ function quiz_print_cat_question_list($course, $categoryid, $quizselected=true,
$canedit = isteacheredit($category->course); $canedit = isteacheredit($category->course);
echo "<form method=\"post\" action=\"edit.php\">"; echo '<form method="post" action="edit.php">';
echo "<input type=\"hidden\" name=\"sesskey\" value=\"$USER->sesskey\">"; echo '<input type="hidden" name="sesskey" value="'.$USER->sesskey.'">';
echo "<table border=\"0\" cellpadding=\"5\" cellspacing=\"2\" width=\"100%\">"; echo '<table id="categoryquestions" cellspacing="0"><tr>';
echo "<tr>";
if ($canedit) { if ($canedit) {
echo "<th width=\"95\" nowrap=\"nowrap\">$straction</th>"; echo "<th width=\"95\" nowrap=\"nowrap\">$straction</th>";
} }
@ -1461,9 +1460,9 @@ function quiz_print_cat_question_list($course, $categoryid, $quizselected=true,
echo "</tr>\n"; echo "</tr>\n";
} }
echo "</table>\n"; echo "</table>\n";
echo '<a href="javascript:checkall();">'.$strselectall.'</a> /'. echo '<a href="javascript:select_all_in(\'TABLE\', null, \'categoryquestions\');">'.$strselectall.'</a> /'.
' <a href="javascript:checknone();">'.$strselectnone.'</a>'; ' <a href="javascript:deselect_all_in(\'TABLE\', null, \'categoryquestions\');">'.$strselectnone.'</a>';
echo "&nbsp;<input type=\"submit\" name=\"deleteselected\" value=\"$strdeleteselected\" />\n"; echo "&nbsp;<input type=\"submit\" name=\"deleteselected\" value=\"$strdeleteselected\" />\n";
echo "<br />"; echo "<br />";