@edx/edx-proctoring
Advanced tools
Comparing version 1.6.2 to 1.7.1
@@ -119,2 +119,17 @@ /* globals accessible_modal:false */ | ||
edx.courseware.proctored_exam = edx.courseware.proctored_exam || {}; | ||
edx.courseware.proctored_exam.updateStatusHandler = function() { | ||
var $this = $(this); | ||
var actionUrl = $this.data('change-state-url'); | ||
var action = $this.data('action'); | ||
updateExamAttemptStatusPromise(actionUrl, action)() | ||
.then(reloadPage) | ||
.catch(errorHandlerGivenMessage( | ||
$this, | ||
gettext('Error Ending Exam'), | ||
gettext( | ||
'Something has gone wrong ending your exam. ' + | ||
'Please reload the page and start again.' | ||
) | ||
)); | ||
}; | ||
edx.courseware.proctored_exam.examStartHandler = function(e) { | ||
@@ -176,3 +191,3 @@ var $this = $(this); | ||
'Something has gone wrong ending your exam. ' + | ||
'Please double-check that the application is running.' | ||
'Please double-check that the application is running.' | ||
) | ||
@@ -179,0 +194,0 @@ )); |
@@ -5,3 +5,3 @@ { | ||
"//": "Note that the version format is slightly different than that of the Python version when using prereleases.", | ||
"version": "1.6.2", | ||
"version": "1.7.1", | ||
"main": "edx_proctoring/static/index.js", | ||
@@ -8,0 +8,0 @@ "repository": { |
416088
5768