]> git.mjollnir.org Git - moodle.git/commitdiff
cssclasses MDL-17525 Added next and previous classes to quiz pagination links
authorsamhemelryk <samhemelryk>
Wed, 10 Jun 2009 08:35:45 +0000 (08:35 +0000)
committersamhemelryk <samhemelryk>
Wed, 10 Jun 2009 08:35:45 +0000 (08:35 +0000)
mod/quiz/locallib.php

index 174bf32045314ba5b4514c148a1a5c314ed0b9ff..8ec712059b80faa5d6686cc43e8cbc740619e288 100644 (file)
@@ -375,7 +375,7 @@ function quiz_print_navigation_panel($page, $pages) {
     if ($page > 0) {
         // Print previous link
         $strprev = get_string('previous');
-        echo '<a href="javascript:navigate(' . ($page - 1) . ');" title="'
+        echo '<a class="previous" href="javascript:navigate(' . ($page - 1) . ');" title="'
          . $strprev . '">(' . $strprev . ')</a>';
     }
     for ($i = 0; $i < $pages; $i++) {
@@ -389,7 +389,7 @@ function quiz_print_navigation_panel($page, $pages) {
     if ($page < $pages - 1) {
         // Print next link
         $strnext = get_string('next');
-        echo '<a href="javascript:navigate(' . ($page + 1) . ');" title="'
+        echo '<a class="next" href="javascript:navigate(' . ($page + 1) . ');" title="'
          . $strnext . '">(' . $strnext . ')</a>';
     }
     echo '</div>';