MDL-54745 mod_assign: Remove leftover changegradewarning string and js

This commit is contained in:
Jake Dallimore 2016-05-27 11:22:55 +08:00
parent d1a3ea62ef
commit 0cced3ced3
3 changed files with 4 additions and 13 deletions

View File

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

View File

@ -0,0 +1 @@
changegradewarning,mod_assign

View File

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