Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-20034

User Picture tooltips only show in Internet Explorer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Minor Minor
    • 1.9
    • 1.9.5
    • Usability
    • None
    • Firefox, Google Chrome, Safari, Opera
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE
    • Easy

      Because only Internet Explorer displays tooltips using the 'alt' tag, all other browsers are missing out on the display picture description. The easy fix is to also add a 'title' tag to images to the userpics in addidtion to the 'alt' tag.

      Line 4457 in moodle\lib\weblib.php just needs to go from:
      $output .= "<img class=\"$class\" src=\"$src\" height=\"$size\" width=\"$size\" alt=\"".s($imagealt).'" />';

      to:
      $output .= "<img class=\"$class\" src=\"$src\" height=\"$size\" width=\"$size\" title=\"".s($imagealt)."\" alt=\"".s($imagealt).'" />';

      This is definitely not a big issue but is one that can be very quickly fixed. I don't know where else this might be an issue!

      Josh Lukins

            rwijaya Rossiani Wijaya
            jlukins jl@tigs.nsw.edu.au (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.