Permalink
Browse files

MDL-34777 Accessibility: Add proper id to select input

  • Loading branch information...
1 parent b89ec44 commit 7482a714017a2e1e4a43808f778aacd62a163a25 @rajeshtaneja rajeshtaneja committed with danpoltawski Oct 31, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 grade/edit/tree/lib.php
  2. +1 −1 mod/assign/gradingtable.php
@@ -1201,7 +1201,7 @@ public function get_item_cell($item, $params) {
if ($params['itemtype'] != 'course' && $params['itemtype'] != 'category') {
$itemselect = '<label class="accesshide" for="select_'.$params['eid'].'">'.
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
}
//html_writer::table() will wrap the item cell contents in a <TD> so don't do it here
@@ -527,7 +527,7 @@ function col_fullname($row) {
function col_select(stdClass $row) {
return '<label class="accesshide" for="selectuser_' . $row->userid . '">' .
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 . '"/>';
}
/**

0 comments on commit 7482a71

Please sign in to comment.