mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Merge branch 'mdl-54852-master' of https://github.com/Dagefoerde/moodle
This commit is contained in:
commit
6e986b2919
2 changed files with 6 additions and 3 deletions
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
|
@ -23,10 +23,10 @@
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
* @since 3.1
|
* @since 3.1
|
||||||
*/
|
*/
|
||||||
define(['jquery', 'core/notification', 'core/templates', 'core/fragment',
|
define(['jquery', 'core/yui', 'core/notification', 'core/templates', 'core/fragment',
|
||||||
'core/ajax', 'core/str', 'mod_assign/grading_form_change_checker',
|
'core/ajax', 'core/str', 'mod_assign/grading_form_change_checker',
|
||||||
'mod_assign/grading_events'],
|
'mod_assign/grading_events'],
|
||||||
function($, notification, templates, fragment, ajax, str, checker, GradingEvents) {
|
function($, Y, notification, templates, fragment, ajax, str, checker, GradingEvents) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GradingPanel class.
|
* GradingPanel class.
|
||||||
|
@ -147,6 +147,9 @@ define(['jquery', 'core/notification', 'core/templates', 'core/fragment',
|
||||||
]).done(function(strs) {
|
]).done(function(strs) {
|
||||||
notification.alert(strs[0], strs[1]);
|
notification.alert(strs[0], strs[1]);
|
||||||
}).fail(notification.exception);
|
}).fail(notification.exception);
|
||||||
|
Y.use('moodle-core-formchangechecker', function() {
|
||||||
|
M.core_formchangechecker.reset_form_dirty_state();
|
||||||
|
});
|
||||||
if (nextUserId == this._lastUserId) {
|
if (nextUserId == this._lastUserId) {
|
||||||
$(document).trigger('reset', nextUserId);
|
$(document).trigger('reset', nextUserId);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue