mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36: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));
|
'showquickgrading'=>false));
|
||||||
if ($formdata = $mform->get_data()) {
|
if ($formdata = $mform->get_data()) {
|
||||||
set_user_preference('assign_perpage', $formdata->perpage);
|
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);
|
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();
|
Y.one('form.gradingoptionsform').submit();
|
||||||
});
|
});
|
||||||
var filterelement = Y.one('#id_filter');
|
var filterelement = Y.one('#id_filter');
|
||||||
filterelement.on('change', function(e) {
|
if (filterelement) {
|
||||||
Y.one('form.gradingoptionsform').submit();
|
filterelement.on('change', function(e) {
|
||||||
});
|
Y.one('form.gradingoptionsform').submit();
|
||||||
|
});
|
||||||
|
}
|
||||||
var quickgradingelement = Y.one('#id_quickgrading');
|
var quickgradingelement = Y.one('#id_quickgrading');
|
||||||
if (quickgradingelement) {
|
if (quickgradingelement) {
|
||||||
quickgradingelement.on('change', function(e) {
|
quickgradingelement.on('change', function(e) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue