]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-11681 Changed it so current tab no longer is a link to #
authorsam_marshall <sam_marshall>
Tue, 9 Oct 2007 16:56:00 +0000 (16:56 +0000)
committersam_marshall <sam_marshall>
Tue, 9 Oct 2007 16:56:00 +0000 (16:56 +0000)
lib/weblib.php
theme/standard/styles_fonts.css

index da100d90f7e4e4b064144eecf978357c819ae482..d7251830d83bf39353113539c5b3743bbb225de1 100644 (file)
@@ -6235,7 +6235,8 @@ function convert_tree_to_html($tree, $row=0) {
         $str .= (!empty($liclass)) ? '<li class="'.$liclass.'">' : '<li>';
 
         if ($tab->inactive || $tab->active || ($tab->selected && !$tab->linkedwhenselected)) {
-            $str .= '<a href="#" title="'.$tab->title.'"><span>'.$tab->text.'</span></a>';
+            // The a tag is used for styling
+            $str .= '<a class="nolink"><span>'.$tab->text.'</span></a>';
         } else {
             $str .= '<a href="'.$tab->link.'" title="'.$tab->title.'"><span>'.$tab->text.'</span></a>';
         }
index 949fb806ccc508cbc80d168d0449a3c3c88bd134..4f4f2f79b316ceb57fd74d9034319d69d9bdac27 100644 (file)
@@ -630,6 +630,10 @@ body#grade-index .grades .header {
  *** Tabs
  ***/
 
+.tabtree a.nolink:hover {
+  text-decoration: none;
+}
+
 
 /***
  *** User