Permalink
Browse files

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

…a/moodle into MOODLE_23_STABLE
  • Loading branch information...
2 parents 61e520a + f81c3a3 commit 00cb41c2ba9b3b7cfaaa819d8565d5e6a0c02301 @danpoltawski danpoltawski committed Aug 6, 2012
Showing with 7 additions and 2 deletions.
  1. +2 −1 filter/algebra/algebradebug.php
  2. +1 −0 filter/algebra/lang/en/filter_algebra.php
  3. +4 −1 filter/manage.php
@@ -280,7 +280,8 @@ function slasharguments($texexp, $md5) {
<form action="algebradebug.php" method="get"
target="inlineframe">
<center>
- <input type="text" name="algebra" size="50"
+ <label for="algebra" class="accesshide"><?php print_string('algebraicexpression', 'filter_algebra'); ?></label>
+ <input type="text" id="algebra" name="algebra" size="50"
value="sin(z)/(x^2+y^2)" />
</center>
<ol>
@@ -24,3 +24,4 @@
*/
$string['filtername'] = 'Algebra notation';
+$string['algebraicexpression'] = 'Algebraic expression';
View
@@ -181,7 +181,10 @@
} else {
$activechoices[TEXTFILTER_INHERIT] = $strdefaultoff;
}
- $row[] = html_writer::select($activechoices, str_replace('/', '_', $filter), $filterinfo->localstate, false);
+ $filtername = str_replace('/', '_', $filter);
+ $select = html_writer::label($filterinfo->localstate, 'menu'. $filtername, false, array('class' => 'accesshide'));
+ $select .= html_writer::select($activechoices, $filtername, $filterinfo->localstate, false);
+ $row[] = $select;
// Settings link, if required
if ($settingscol) {

0 comments on commit 00cb41c

Please sign in to comment.