Merge branch 'MDL-34558_accessibility_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE

This commit is contained in:
Dan Poltawski
2012-08-06 11:54:19 +08:00
3 changed files with 7 additions and 2 deletions
+2 -1
View File
@@ -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';
+4 -1
View File
@@ -181,7 +181,10 @@ if (empty($availablefilters)) {
} 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) {