This commit is contained in:
Ilya Tregubov 2023-06-01 10:12:14 +08:00
commit 59cd47c02f
No known key found for this signature in database
GPG key ID: 0F58186F748E55C1
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

View file

@ -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.