Files
edx-platform/cms/static/js/models/assignment_grade.js
Don Mitchell 17864353a5 Restful course settings
STUD-946
STUD-947
2013-11-22 10:55:35 -05:00

16 lines
639 B
JavaScript

define(["backbone", "underscore"], function(Backbone, _) {
var AssignmentGrade = Backbone.Model.extend({
defaults : {
graderType : null, // the type label (string). May be "Not Graded" which implies None.
locator : null // locator for the block
},
idAttribute: 'locator',
urlRoot : '/xblock/',
url: function() {
// add ?fields=graderType to the request url (only needed for fetch, but innocuous for others)
return Backbone.Model.prototype.url.apply(this) + '?' + $.param({fields: 'graderType'});
}
});
return AssignmentGrade;
});