Merge branch 'MDL-46818-master-fixup' of https://github.com/FMCorz/moodle

This commit is contained in:
Marina Glancy 2014-09-10 10:50:06 +08:00
commit 4525ff2cfb
2 changed files with 2 additions and 2 deletions

View File

@ -335,7 +335,7 @@ if (!$moving) {
if (!$moving && count($grade_edit_tree->categories) > 1) {
echo '<br /><br />';
echo '<input type="hidden" name="bulkmove" value="0" id="bulkmoveinput" />';
$attributes = array('id'=>'menumoveafter');
$attributes = array('id'=>'menumoveafter', 'class' => 'ignoredirty');
echo html_writer::label(get_string('moveselectedto', 'grades'), 'menumoveafter');
echo html_writer::select($grade_edit_tree->categories, 'moveafter', '', array(''=>'choosedots'), $attributes);
$OUTPUT->add_action_handler(new component_action('change', 'submit_bulk_move'), 'menumoveafter');

View File

@ -1199,7 +1199,7 @@ class grade_edit_tree_column_select extends grade_edit_tree_column {
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'].'" id="select_'.$params['eid'].
<input class="itemselect ignoredirty" 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