mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Merge branch 'MDL-36051_24' of git://github.com/rlorenzo/moodle
This commit is contained in:
commit
aa289da834
2 changed files with 9 additions and 5 deletions
|
@ -3635,7 +3635,9 @@ class assign {
|
|||
'showquickgrading'=>false));
|
||||
if ($formdata = $mform->get_data()) {
|
||||
set_user_preference('assign_perpage', $formdata->perpage);
|
||||
set_user_preference('assign_filter', $formdata->filter);
|
||||
if (isset($formdata->filter)) {
|
||||
set_user_preference('assign_filter', $formdata->filter);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4794,4 +4796,4 @@ class assign_portfolio_caller extends portfolio_module_caller_base {
|
|||
return array(PORTFOLIO_FORMAT_FILE, PORTFOLIO_FORMAT_LEAP2A);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -127,9 +127,11 @@ M.mod_assign.init_grading_options = function(Y) {
|
|||
Y.one('form.gradingoptionsform').submit();
|
||||
});
|
||||
var filterelement = Y.one('#id_filter');
|
||||
filterelement.on('change', function(e) {
|
||||
Y.one('form.gradingoptionsform').submit();
|
||||
});
|
||||
if (filterelement) {
|
||||
filterelement.on('change', function(e) {
|
||||
Y.one('form.gradingoptionsform').submit();
|
||||
});
|
||||
}
|
||||
var quickgradingelement = Y.one('#id_quickgrading');
|
||||
if (quickgradingelement) {
|
||||
quickgradingelement.on('change', function(e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue