Skip to content

Commit

Permalink
MDL-34569 accessibility compliance for wiki module: Add label for inp…
Browse files Browse the repository at this point in the history
…ut text and select tag
  • Loading branch information
Rossiani Wijaya committed Aug 17, 2012
1 parent 7033316 commit 93dbb62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mod/wiki/editors/wikieditor.php
Expand Up @@ -120,7 +120,8 @@ private function getButtons() {
$html .= html_writer::empty_tag('img', array('alt' => $button[1], 'src' => $CFG->wwwroot . '/mod/wiki/editors/wiki/images/' . $button[0]));
$html .= "</a>";
}
$html .= "<select onchange=\"insertTags('{$imagetag[0]}', '{$imagetag[1]}', this.value)\">";
$html .= "<label class='accesshide' for='addtags'>" . get_string('insertimage', 'wiki') . "</label>";
$html .= "<select id='addtags' onchange=\"insertTags('{$imagetag[0]}', '{$imagetag[1]}', this.value)\">";
$html .= "<option value='" . s(get_string('wikiimage', 'wiki')) . "'>" . get_string('insertimage', 'wiki') . '</option>';
foreach ($this->files as $filename) {
$html .= "<option value='".s($filename)."'>";
Expand Down

0 comments on commit 93dbb62

Please sign in to comment.