MDL-46936 gradereport_grader: Restore AJAX editing to gradereport

Removed id argument from AJAX code, no longer supplied.

This issue is a part of the MDL-46658 Task.
This issue is a part of the MDL-25544 Epic.
This commit is contained in:
Zachary Durber 2014-09-04 03:47:19 +00:00 committed by Andrew Nicols
parent 33bc816e89
commit eede44b54e

View File

@ -2,10 +2,6 @@
* Grader report namespace
*/
M.gradereport_grader = {
/**
* @param {Array} reports An array of instantiated report objects
*/
reports : [],
/**
* @namespace M.gradereport_grader
* @param {Object} reports A collection of classes used by the grader report module
@ -16,16 +12,15 @@ M.gradereport_grader = {
*
* @function
* @param {YUI} Y
* @param {String} id The id attribute of the reports table
* @param {Object} cfg A configuration object
* @param {Array} An array of items in the report
* @param {Array} An array of users on the report
* @param {Array} An array of feedback objects
* @param {Array} An array of student grades
*/
init_report : function(Y, id, cfg, items, users, feedback, grades) {
init_report : function(Y, cfg, items, users, feedback, grades) {
// Create the actual report
this.reports[id] = new this.classes.report(Y, id, cfg, items, users, feedback, grades);
new this.classes.report(Y, cfg, items, users, feedback, grades);
}
};
@ -41,13 +36,12 @@ M.gradereport_grader = {
* @constructor
* @this {M.gradereport_grader}
* @param {YUI} Y
* @param {int} id The id of the table to attach the report to
* @param {Object} cfg Configuration variables
* @param {Array} items An array containing grade items
* @param {Array} users An array containing user information
* @param {Array} feedback An array containing feedback information
*/
M.gradereport_grader.classes.report = function(Y, id, cfg, items, users, feedback, grades) {
M.gradereport_grader.classes.report = function(Y, cfg, items, users, feedback, grades) {
this.Y = Y;
this.isediting = (cfg.isediting);
this.ajaxenabled = (cfg.ajaxenabled);