/
githubmirror
/
edx-platform
Обзор
Документация
Войти
/
githubmirror
/
edx-platform
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
release-ulmo
cms/static/js/models/assignment_grade.js
15 строк
633 B
Syed Ali Abbas Zaidi
Revert "fix: all auto fixable eslint issues (#31900)" (#32203)
09 май 2023, 11:53
Не верифицирован
09 май 2023, 11:53
adf879e
Код
Авторство
О чём код?
define(['backbone', 'underscore'], function(Backbone, _) { var AssignmentGrade = Backbone.Model.extend({ defaults: { graderType: null, // the type label (string). May be "notgraded" 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; });