Fixes bug MDL-12416, Help links - img ALT text should contain phrase "new window" to match link TITLE.

This commit is contained in:
nfreear 2007-12-03 16:41:36 +00:00
parent 2a58d3c22c
commit 166db28057

View file

@ -5819,7 +5819,8 @@ function helpbutton ($page, $title='', $module='moodle', $image=true, $linktext=
$module = 'moodle';
}
$tooltip = get_string('helpprefix2', '', trim($title, ". \t"));
// Warn users about new window for Accessibility
$tooltip = get_string('helpprefix2', '', trim($title, ". \t")) .' ('.get_string('newwindow').')';
$linkobject = '';
@ -5839,8 +5840,6 @@ function helpbutton ($page, $title='', $module='moodle', $image=true, $linktext=
$linkobject .= $tooltip;
}
$tooltip .= ' ('.get_string('newwindow').')'; // Warn users about new window for Accessibility
// fix for MDL-7734
if ($text) {
$url = '/help.php?module='. $module .'&text='. s(urlencode($text).'&forcelang='.$forcelang);