diff --git a/cms/djangoapps/contentstore/views.py b/cms/djangoapps/contentstore/views.py index 1a0317212b..15883495bc 100644 --- a/cms/djangoapps/contentstore/views.py +++ b/cms/djangoapps/contentstore/views.py @@ -352,7 +352,6 @@ def assignment_type_update(request, org, course, category, name): raise HttpResponseForbidden() if request.method == 'GET': - # Cannot just do a get w/o knowing the course name :-( return HttpResponse(json.dumps(CourseGradingModel.get_section_grader_type(location)), mimetype="application/json") elif request.method == 'POST': # post or put, doesn't matter. diff --git a/cms/static/js/models/course_relative.js b/cms/static/js/models/course_relative.js index 85ba6004ff..56111cc1c8 100644 --- a/cms/static/js/models/course_relative.js +++ b/cms/static/js/models/course_relative.js @@ -37,7 +37,6 @@ CMS.Models.Location = Backbone.Model.extend({ org: this._fieldPattern.exec(payload)[0], course: this._fieldPattern.exec(payload)[0], category: this._fieldPattern.exec(payload)[0], - // FIXME handle no trailing / name: this._fieldPattern.exec(payload)[0] } } diff --git a/cms/static/js/views/grader-select-view.js b/cms/static/js/views/grader-select-view.js index 0733cd6451..f810621135 100644 --- a/cms/static/js/views/grader-select-view.js +++ b/cms/static/js/views/grader-select-view.js @@ -1,5 +1,4 @@ CMS.Models.AssignmentGrade = Backbone.Model.extend({ - idAttribute : "cid", // not sure if this is kosher defaults : { graderType : null, // the type label (string). May be "Not Graded" which implies None. I'd like to use id but that's ephemeral location : null // A location object @@ -35,7 +34,7 @@ CMS.Views.OverviewAssignmentGrader = Backbone.View.extend({ this.template = _.template( // TODO move to a template file '