Merge branch 'MDL-69192' of https://github.com/willob99/moodle
authorAndrew Nicols <andrew@nicols.co.uk>
Wed, 7 Oct 2020 05:15:08 +0000 (13:15 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Wed, 7 Oct 2020 05:15:08 +0000 (13:15 +0800)
mod/assign/amd/build/grading_panel.min.js
mod/assign/amd/build/grading_panel.min.js.map
mod/assign/amd/src/grading_panel.js

index e30c713..59b3976 100644 (file)
Binary files a/mod/assign/amd/build/grading_panel.min.js and b/mod/assign/amd/build/grading_panel.min.js differ
index f856ec5..49942bd 100644 (file)
Binary files a/mod/assign/amd/build/grading_panel.min.js.map and b/mod/assign/amd/build/grading_panel.min.js.map differ
index da11d9d..dbd75ff 100644 (file)
@@ -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();