Commit 3e08fb6a by chrisndodge

Merge pull request #60 from edx/afzaledx/PHX-79_instructor_dashboard_view_moved

PHX-79
parents 44b442d7 68094133
......@@ -6,10 +6,4 @@ $(function() {
model: new ProctoredExamModel()
});
proctored_exam_view.render();
var proctored_exam_attempt_view = new edx.instructor_dashboard.proctoring.ProctoredExamAttemptView({
el: $('.student-proctored-exam-container'),
template_url: '/static/proctoring/templates/student-proctored-exam-attempts.underscore',
collection: new edx.instructor_dashboard.proctoring.ProctoredExamAttemptCollection(),
model: new edx.instructor_dashboard.proctoring.ProctoredExamAttemptModel()
});
});
......@@ -18,10 +18,10 @@ var edx = edx || {};
};
edx.instructor_dashboard.proctoring.ProctoredExamAttemptView = Backbone.View.extend({
initialize: function (options) {
this.$el = options.el;
this.collection = options.collection;
this.tempate_url = options.template_url;
this.model = options.model;
this.setElement($('.student-proctored-exam-container'));
this.collection = new edx.instructor_dashboard.proctoring.ProctoredExamAttemptCollection();
this.tempate_url = '/static/proctoring/templates/student-proctored-exam-attempts.underscore';
this.model = new edx.instructor_dashboard.proctoring.ProctoredExamAttemptModel();
this.course_id = this.$el.data('course-id');
this.template = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment