mirror of
https://github.com/moodle/moodle.git
synced 2025-04-23 09:23:09 +02:00
MDL-6650 - Previewing individual random questions from the quiz editing screen was not working, and anyway, I'm not sure it makes any sense, so I removed that preview link. Merged from MOODLE_17_STABLE.
This commit is contained in:
parent
fdc8e778d5
commit
3a3771d2b9
@ -257,7 +257,7 @@ function quiz_print_question_list($quiz, $allowdelete=true, $showbreaks=true, $r
|
||||
print_question_icon($question, $canedit);
|
||||
echo "</td>";
|
||||
echo '<td align="left">';
|
||||
if ($question->qtype == DESCRIPTION) {
|
||||
if ($question->qtype == 'description') {
|
||||
echo "<input type=\"hidden\" name=\"q$qnum\" value=\"0\" /> \n";
|
||||
} else {
|
||||
echo '<input type="text" name="q'.$qnum.'" size="2" value="'.$quiz->grades[$qnum].
|
||||
@ -267,9 +267,11 @@ function quiz_print_question_list($quiz, $allowdelete=true, $showbreaks=true, $r
|
||||
|
||||
$context = $quiz->id ? '&contextquiz='.$quiz->id : '';
|
||||
$quiz_id = $quiz->id ? '&quizid=' . $quiz->id : '';
|
||||
echo "<a title=\"$strpreview\" href=\"javascript:void(0)\" onClick=\"openpopup('/question/preview.php?id=$qnum$quiz_id','questionpreview', " .
|
||||
QUESTION_PREVIEW_POPUP_OPTIONS . ", false)\">
|
||||
<img src=\"$CFG->pixpath/t/preview.gif\" border=\"0\" alt=\"$strpreview\" /></a>";
|
||||
if ($question->qtype != 'random') {
|
||||
echo "<a title=\"$strpreview\" href=\"javascript:void(0)\" onClick=\"openpopup('/question/preview.php?id=$qnum$quiz_id','questionpreview', " .
|
||||
QUESTION_PREVIEW_POPUP_OPTIONS . ", false)\">
|
||||
<img src=\"$CFG->pixpath/t/preview.gif\" border=\"0\" alt=\"$strpreview\" /></a>";
|
||||
}
|
||||
if ($canedit) {
|
||||
echo "<a title=\"$stredit\" href=\"$CFG->wwwroot/question/question.php?id=$qnum$context\">
|
||||
<img src=\"$CFG->pixpath/t/edit.gif\" border=\"0\" alt=\"$stredit\" /></a>";
|
||||
|
Loading…
x
Reference in New Issue
Block a user