MDL-15692 - Quiz attempt paging bar screws up in IE7 when you zoom the page. Normal Moodle paging bar doesn't, so I've changed the HTML the quiz generates to be closer the the output of weblib. Fortunately, this is irrelevant in 2.0.

This commit is contained in:
tjhunt
2008-07-17 12:39:43 +00:00
parent 7536d5b28c
commit a1f418fb08
2 changed files with 7 additions and 15 deletions
+7 -7
View File
@@ -231,26 +231,26 @@ function quiz_repaginate($layout, $perpage, $shuffle=false) {
function quiz_print_navigation_panel($page, $pages) {
//$page++;
echo '<div class="paging pagingbar">';
echo '<span class="title">' . get_string('page') . ':</span>';
echo '<span class="title">' . get_string('page') . ':</span>&nbsp;';
if ($page > 0) {
// Print previous link
$strprev = get_string('previous');
echo '<a href="javascript:navigate(' . ($page - 1) . ');" title="'
. $strprev . '">(' . $strprev . ')</a>';
echo '&nbsp;<a href="javascript:navigate(' . ($page - 1) . ');" title="'
. $strprev . '">(' . $strprev . ')</a>&nbsp;';
}
for ($i = 0; $i < $pages; $i++) {
if ($i == $page) {
echo '<span class="thispage">'.($i+1).'</span>';
echo '&nbsp;<span class="thispage">'.($i+1).'</span>&nbsp;';
} else {
echo '<a href="javascript:navigate(' . ($i) . ');">'.($i+1).'</a>';
echo '&nbsp;<a href="javascript:navigate(' . ($i) . ');">'.($i+1).'</a>&nbsp;';
}
}
if ($page < $pages - 1) {
// Print next link
$strnext = get_string('next');
echo '<a href="javascript:navigate(' . ($page + 1) . ');" title="'
. $strnext . '">(' . $strnext . ')</a>';
echo '&nbsp;<a href="javascript:navigate(' . ($page + 1) . ');" title="'
. $strnext . '">(' . $strnext . ')</a>&nbsp;';
}
echo '</div>';
}
-8
View File
@@ -346,14 +346,6 @@ div.groupselector {
text-align:center;
}
.pagingbar a {
padding-left: 10px;
}
.pagingbar .thispage {
padding-left: 10px;
}
table.formtable {
margin: auto;
}