Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'MDL-34569_accessibility_m23' of git://github.com/rwijay…

…a/moodle into MOODLE_23_STABLE
  • Loading branch information...
commit 115ad6cc9e0d1b3a84a59c550b6f684f065429a8 2 parents f6376dc + 01dbe1f
@danpoltawski danpoltawski authored
Showing with 4 additions and 2 deletions.
  1. +2 −1  mod/wiki/editors/wikieditor.php
  2. +2 −1  mod/wiki/lib.php
View
3  mod/wiki/editors/wikieditor.php
@@ -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)."'>";
View
3  mod/wiki/lib.php
@@ -474,7 +474,8 @@ function wiki_search_form($cm, $search = '') {
$output = '<div class="wikisearch">';
$output .= '<form method="post" action="' . $CFG->wwwroot . '/mod/wiki/search.php" style="display:inline">';
$output .= '<fieldset class="invisiblefieldset">';
- $output .= '<input name="searchstring" type="text" size="18" value="' . s($search, true) . '" alt="search" />';
+ $output .= '<label class="accesshide" for="searchwiki">' . get_string("searchwikis", "wiki") . '</label>';
+ $output .= '<input id="searchwiki" name="searchstring" type="text" size="18" value="' . s($search, true) . '" alt="search" />';
$output .= '<input name="courseid" type="hidden" value="' . $cm->course . '" />';
$output .= '<input name="cmid" type="hidden" value="' . $cm->id . '" />';
$output .= '<input name="searchwikicontent" type="hidden" value="1" />';
Please sign in to comment.
Something went wrong with that request. Please try again.