mirror of
https://github.com/moodle/moodle.git
synced 2025-04-24 18:04:43 +02:00
MDL-34800 core_grade:switched from hiding the submit button to disabling it if ajax is enabled
This commit is contained in:
parent
1918a2452e
commit
60daf98c96
@ -323,9 +323,9 @@ M.gradereport_grader.classes.ajax = function(report, cfg) {
|
||||
this.existingfields[userid][itemid] = new M.gradereport_grader.classes.existingfield(this, userid, itemid);
|
||||
}
|
||||
}
|
||||
// Hide the Update button
|
||||
// Disable the Update button as we're saving using ajax.
|
||||
submitbutton = this.report.Y.one('#gradersubmit');
|
||||
submitbutton.setStyle('visibility', 'hidden');
|
||||
submitbutton.set('disabled', true);
|
||||
}
|
||||
};
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user