mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
Merge branch 'MDL-69192' of https://github.com/willob99/moodle
This commit is contained in:
commit
675d90a39a
2
mod/assign/amd/build/grading_panel.min.js
vendored
2
mod/assign/amd/build/grading_panel.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -25,8 +25,8 @@
|
||||
*/
|
||||
define(['jquery', 'core/yui', 'core/notification', 'core/templates', 'core/fragment',
|
||||
'core/ajax', 'core/str', 'mod_assign/grading_form_change_checker',
|
||||
'mod_assign/grading_events', 'core/event'],
|
||||
function($, Y, notification, templates, fragment, ajax, str, checker, GradingEvents, Event) {
|
||||
'mod_assign/grading_events', 'core/event', 'core/toast'],
|
||||
function($, Y, notification, templates, fragment, ajax, str, checker, GradingEvents, Event, Toast) {
|
||||
|
||||
/**
|
||||
* GradingPanel class.
|
||||
@ -148,10 +148,9 @@ define(['jquery', 'core/yui', 'core/notification', 'core/templates', 'core/fragm
|
||||
$(document).trigger('reset', [this._lastUserId, formdata]);
|
||||
} else {
|
||||
str.get_strings([
|
||||
{key: 'changessaved', component: 'core'},
|
||||
{key: 'gradechangessaveddetail', component: 'mod_assign'},
|
||||
]).done(function(strs) {
|
||||
notification.alert(strs[0], strs[1]);
|
||||
Toast.add(strs[0]);
|
||||
}).fail(notification.exception);
|
||||
Y.use('moodle-core-formchangechecker', function() {
|
||||
M.core_formchangechecker.reset_form_dirty_state();
|
||||
|
Loading…
x
Reference in New Issue
Block a user