Skip to content

Commit

Permalink
Merge branch 'MDL-28051_21' of git://github.com/timhunt/moodle into M…
Browse files Browse the repository at this point in the history
…OODLE_21_STABLE
  • Loading branch information
samhemelryk committed Aug 2, 2011
2 parents c0c2b3d + 235a394 commit 365ed23
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
23 changes: 10 additions & 13 deletions mod/quiz/editlib.php
Expand Up @@ -534,23 +534,20 @@ function quiz_print_question_list($quiz, $pageurl, $allowdelete, $reordertool,
$reordercheckboxlabel = '<label for="s' . $question->id . '">';
$reordercheckboxlabelclose = '</label>';
}
if (!$quiz->shufflequestions) {
// Print and increment question number
$questioncountstring = '';
if ($questioncount>999 || ($reordertool && $questioncount>99)) {
$questioncountstring =
"$reordercheckboxlabel<small>$questioncount</small>" .
$reordercheckboxlabelclose . $reordercheckbox;
if ($question->length == 0) {
$qnodisplay = get_string('infoshort', 'quiz');
} else if ($quiz->shufflequestions) {
$qnodisplay = '?';
} else {
if ($qno > 999 || ($reordertool && $qno > 99)) {
$qnodisplay = html_writer::tag('small', $qno);
} else {
$questioncountstring = $reordercheckboxlabel . $questioncount .
$reordercheckboxlabelclose . $reordercheckbox;
$qnodisplay = $qno;
}
echo $questioncountstring;
$qno += $question->length;
} else {
echo "$reordercheckboxlabel ? $reordercheckboxlabelclose" .
" $reordercheckbox";
}
echo $reordercheckboxlabel . $qnodisplay . $reordercheckboxlabelclose .
$reordercheckbox;

?>
</div>
Expand Down
1 change: 1 addition & 0 deletions mod/quiz/styles.css
Expand Up @@ -374,6 +374,7 @@ bank window's title is prominent enough*/
.ie6#page-mod-quiz-edit div.question div.content .questionname {width:20%;}
.ie6#page-mod-quiz-edit .editq div.question div.content .randomquestioncategory a{width:40%;}
.ie6#page-mod-quiz-edit .reorder .questioncontentcontainer .randomquestioncategory label{width: 35%;}
.qnum label {padding-right: 0.25em;}

/** settings.php */
#adminquizreviewoptions {margin-bottom: 0.5em;}

0 comments on commit 365ed23

Please sign in to comment.