mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Merge branch 'MDL-62859' of https://github.com/paulholden/moodle
This commit is contained in:
commit
59cd47c02f
29 changed files with 395 additions and 455 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -22,8 +22,8 @@
|
|||
* @since 3.1
|
||||
*/
|
||||
define(['jquery', 'core/notification', 'core/str', 'core/form-autocomplete',
|
||||
'core/ajax', 'mod_assign/grading_form_change_checker'],
|
||||
function($, notification, str, autocomplete, ajax, checker) {
|
||||
'core/ajax', 'core_user/repository', 'mod_assign/grading_form_change_checker'],
|
||||
function($, notification, str, autocomplete, ajax, UserRepository, checker) {
|
||||
|
||||
/**
|
||||
* GradingNavigation class.
|
||||
|
@ -219,12 +219,7 @@ define(['jquery', 'core/notification', 'core/str', 'core/form-autocomplete',
|
|||
});
|
||||
}
|
||||
|
||||
return ajax.call([{
|
||||
methodname: 'core_user_set_user_preferences',
|
||||
args: {
|
||||
preferences: preferences
|
||||
}
|
||||
}])[0];
|
||||
return UserRepository.setUserPreferences(preferences);
|
||||
};
|
||||
/**
|
||||
* Turn a filter on or off.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue