-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into matthugs/javascript-ci-setup
- Loading branch information
Showing
10 changed files
with
127 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
edx_proctoring/static/proctoring/js/views/proctored_exam_instructor_launch.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
var edx = edx || {}; | ||
|
||
(function (Backbone, $, _) { | ||
'use strict'; | ||
|
||
edx.instructor_dashboard = edx.instructor_dashboard || {}; | ||
edx.instructor_dashboard.proctoring = edx.instructor_dashboard.proctoring || {}; | ||
edx.instructor_dashboard.proctoring.ProctoredExamDashboardView = Backbone.View.extend({ | ||
initialize: function (options) { | ||
this.setElement($('.student-review-dashboard-container')); | ||
this.tempate_url = '/static/proctoring/templates/dashboard.underscore'; | ||
this.iframeHTML = null; | ||
this.doRender = true; | ||
this.context = { | ||
dashboardURL: '/api/edx_proctoring/v1/instructor/' + this.$el.data('course-id') | ||
}; | ||
var self = this; | ||
|
||
$('#proctoring-accordion').on('accordionactivate', function(event, ui) { | ||
self.render(ui); | ||
}); | ||
/* Load the static template for rendering. */ | ||
this.loadTemplateData(); | ||
}, | ||
loadTemplateData: function () { | ||
var self = this; | ||
$.ajax({url: self.tempate_url, dataType: "html"}) | ||
.error(function (jqXHR, textStatus, errorThrown) { | ||
|
||
}) | ||
.done(function (template_html) { | ||
self.iframeHTML = _.template(template_html)(self.context); | ||
}); | ||
}, | ||
render: function (ui) { | ||
if (ui.newPanel.eq(this.$el) && this.doRender && this.iframeHTML) { | ||
this.$el.html(this.iframeHTML); | ||
this.doRender = false; | ||
} | ||
}, | ||
}); | ||
this.edx.instructor_dashboard.proctoring.ProctoredExamDashboardView = edx.instructor_dashboard.proctoring.ProctoredExamDashboardView; | ||
}).call(this, Backbone, $, _); |
3 changes: 3 additions & 0 deletions
3
edx_proctoring/static/proctoring/templates/dashboard.underscore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div class="wrapper-content wrapper"> | ||
<iframe src="<%= dashboardURL %>" frameborder=0 height=1280 style="width:100%"> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters