Added a class around helpbutton links so that enclosing <font> tags can
authorikawhero <ikawhero>
Fri, 21 Jan 2005 02:37:02 +0000 (02:37 +0000)
committerikawhero <ikawhero>
Fri, 21 Jan 2005 02:37:02 +0000 (02:37 +0000)
be removed from HTML code

lib/weblib.php

index 9efbd489318f2d7214491433765504e1f32a1fe3..68d03846efbcb7406b2d2752d3f993ee18a58cf7 100644 (file)
@@ -3056,14 +3056,14 @@ function helpbutton ($page, $title='', $module='moodle', $image=true, $linktext=
     if ($image) {
         $icon = $CFG->pixpath .'/help.gif';
         if ($linktext) {
-            $linkobject = "<span style=\"cursor:help;\">$title<img align=\"middle\" border=\"0\" ".
+            $linkobject = "<span class=\"formhelplinks\">$title<img align=\"middle\" border=\"0\" ".
                           " height=\"17\" width=\"22\" alt=\"\" src=\"$icon\" /></span>";
         } else {
             $linkobject = "<img align=\"middle\" border=\"0\" height=\"17\" width=\"22\" ".
                           " alt=\"$title\" style=\"cursor:help;\" src=\"$icon\" />";
         }
     } else {
-        $linkobject = '<span style="cursor:help;">'. $title .'</span>';
+        $linkobject = '<span class="formhelplinks">'. $title .'</span>';
     }
     if ($text) {
         $url = '/help.php?module='. $module .'&amp;text='. htmlentities(urlencode($text));