mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-46818 core_grades: added YUI form change validation
This commit is contained in:
parent
1446e02f69
commit
742d9165b7
@ -368,6 +368,14 @@ if ($moving) {
|
||||
|
||||
echo $OUTPUT->container_end();
|
||||
|
||||
$PAGE->requires->yui_module('moodle-core-formchangechecker',
|
||||
'M.core_formchangechecker.init',
|
||||
array(array(
|
||||
'formid' => 'gradetreeform'
|
||||
))
|
||||
);
|
||||
$PAGE->requires->string_for_js('changesmadereallygoaway', 'moodle');
|
||||
|
||||
echo $OUTPUT->footer();
|
||||
|
||||
// Restore original show/hide preference if moving
|
||||
|
@ -671,6 +671,7 @@ class grade_edit_tree_column_aggregation extends grade_edit_tree_column_category
|
||||
} else {
|
||||
$attributes = array();
|
||||
$attributes['id'] = 'aggregation_'.$category->id;
|
||||
$attributes['class'] = 'ignoredirty';
|
||||
$aggregation = html_writer::label(get_string('aggregation', 'grades'), 'aggregation_'.$category->id, false, array('class' => 'accesshide'));
|
||||
$aggregation .= html_writer::select($options, 'aggregation_'.$category->id, $category->aggregation, null, $attributes);
|
||||
$action = new component_action('change', 'update_category_aggregation', array('courseid' => $params['id'], 'category' => $category->id, 'sesskey' => sesskey()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user