mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-54745 mod_assign: Remove leftover changegradewarning string and js
This commit is contained in:
parent
d1a3ea62ef
commit
0cced3ced3
@ -104,7 +104,6 @@ $string['blindmarkingenabledwarning'] = 'Blind marking is enabled for this activ
|
||||
$string['blindmarking_help'] = 'Blind marking hides the identity of students from markers. Blind marking settings will be locked once a submission or grade has been made in relation to this assignment.';
|
||||
$string['changeuser'] = 'Change user';
|
||||
$string['changefilters'] = 'Change filters';
|
||||
$string['changegradewarning'] = 'This assignment has graded submissions and changing the grade will not automatically re-calculate existing submission grades. You must re-grade all existing submissions, if you wish to change the grade.';
|
||||
$string['choosegradingaction'] = 'Grading action';
|
||||
$string['choosemarker'] = 'Choose...';
|
||||
$string['chooseoperation'] = 'Choose operation';
|
||||
@ -503,3 +502,6 @@ $string['viewsubmissiongradingtable'] = 'View submission grading table.';
|
||||
$string['viewrevealidentitiesconfirm'] = 'View reveal student identities confirmation page.';
|
||||
$string['workflowfilter'] = 'Workflow filter';
|
||||
$string['xofy'] = '{$a->x} of {$a->y}';
|
||||
|
||||
// Deprecated since Moodle 3.2.
|
||||
$string['changegradewarning'] = 'This assignment has graded submissions and changing the grade will not automatically re-calculate existing submission grades. You must re-grade all existing submissions, if you wish to change the grade.';
|
||||
|
1
mod/assign/lang/en/deprecated.txt
Normal file
1
mod/assign/lang/en/deprecated.txt
Normal file
@ -0,0 +1 @@
|
||||
changegradewarning,mod_assign
|
@ -150,18 +150,6 @@ M.mod_assign.init_grading_options = function(Y) {
|
||||
});
|
||||
};
|
||||
|
||||
M.mod_assign.init_grade_change = function(Y) {
|
||||
var gradenode = Y.one('#id_grade');
|
||||
if (gradenode) {
|
||||
var originalvalue = gradenode.get('value');
|
||||
gradenode.on('change', function() {
|
||||
if (gradenode.get('value') != originalvalue) {
|
||||
alert(M.util.get_string('changegradewarning', 'mod_assign'));
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
M.mod_assign.init_plugin_summary = function(Y, subtype, type, submissionid) {
|
||||
suffix = subtype + '_' + type + '_' + submissionid;
|
||||
classname = 'contract_' + suffix;
|
||||
|
Loading…
x
Reference in New Issue
Block a user