MDL-34777 Accessibility: Add proper id to select input

This commit is contained in:
Rajesh Taneja 2012-10-31 11:32:44 +08:00 committed by Dan Poltawski
parent b89ec44032
commit 7482a71401
2 changed files with 2 additions and 2 deletions

View File

@ -1201,7 +1201,7 @@ class grade_edit_tree_column_select extends grade_edit_tree_column {
if ($params['itemtype'] != 'course' && $params['itemtype'] != 'category') { if ($params['itemtype'] != 'course' && $params['itemtype'] != 'category') {
$itemselect = '<label class="accesshide" for="select_'.$params['eid'].'">'. $itemselect = '<label class="accesshide" for="select_'.$params['eid'].'">'.
get_string('select', 'grades', $item->itemname).'</label> get_string('select', 'grades', $item->itemname).'</label>
<input class="itemselect" type="checkbox" name="select_'.$params['eid']. <input class="itemselect" type="checkbox" name="select_'.$params['eid'].'" id="select_'.$params['eid'].
'" onchange="toggleCategorySelector();"/>'; // TODO: convert to YUI handler '" onchange="toggleCategorySelector();"/>'; // TODO: convert to YUI handler
} }
//html_writer::table() will wrap the item cell contents in a <TD> so don't do it here //html_writer::table() will wrap the item cell contents in a <TD> so don't do it here

View File

@ -527,7 +527,7 @@ class assign_grading_table extends table_sql implements renderable {
function col_select(stdClass $row) { function col_select(stdClass $row) {
return '<label class="accesshide" for="selectuser_' . $row->userid . '">' . return '<label class="accesshide" for="selectuser_' . $row->userid . '">' .
get_string('selectuser', 'assign', fullname($row)) . '</label> get_string('selectuser', 'assign', fullname($row)) . '</label>
<input type="checkbox" id=="selectuser_' . $row->userid . 'name="selectedusers" value="' . $row->userid . '"/>'; <input type="checkbox" id="selectuser_' . $row->userid . '" name="selectedusers" value="' . $row->userid . '"/>';
} }
/** /**