Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-proctoring
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
edx-proctoring
Commits
f19c4ab7
Commit
f19c4ab7
authored
Jun 15, 2017
by
Eric Fischer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP
parent
4d8db4fd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
21 deletions
+10
-21
edx_proctoring/backends/mock.py
+1
-1
edx_proctoring/templates/proctored_exam/instructions.html
+9
-20
No files found.
edx_proctoring/backends/mock.py
View file @
f19c4ab7
...
...
@@ -70,7 +70,7 @@ class MockProctoringBackendProvider(ProctoringBackendProvider):
the URL that the user needs to go to in order to download
the corresponding desktop software
"""
return
"
mockurl
"
return
"
api/edx_proctoring/v1/proctored_exam/attempt
"
def
on_review_callback
(
self
,
payload
):
"""
...
...
edx_proctoring/templates/proctored_exam/instructions.html
View file @
f19c4ab7
...
...
@@ -133,7 +133,7 @@
function
check_exam_started
()
{
var
url
=
$
(
'.instructions'
).
data
(
'exam-started-poll-url'
)
+
'?sourceid=instructions'
;
var
url
=
$
(
'.instructions'
).
data
(
'exam-started-poll-url'
);
$
.
ajax
(
url
).
success
(
function
(
data
){
if
(
data
.
status
===
'ready_to_start'
)
{
// we've state transitioned, so refresh the page
...
...
@@ -157,26 +157,15 @@
$
(
'.start-proctored-exam'
).
click
(
check_exam_started
);
$
(
"#software_download_link"
).
click
(
function
(
e
)
{
e
.
preventDefault
();
var
url
=
$
(
'.instructions'
).
data
(
'exam-started-poll-url'
);
var
action
=
$
(
this
).
data
(
'action'
);
// open the new tab in the click event with an empty URL but show the message.
var
newWindow
=
window
.
open
(
""
,
"_blank"
);
$
(
newWindow
.
document
.
body
).
html
(
"<p>Please wait while you are being redirected...</p>"
);
var
self
=
this
;
$
.
ajax
({
url
:
url
,
type
:
'PUT'
,
data
:
{
action
:
action
},
success
:
function
(
data
)
{
newWindow
.
location
=
"{{software_download_url}}"
;
}
}).
fail
(
function
(){
newWindow
.
close
();
});
url
:
"{{software_download_url}}"
,
type
:
'POST'
,
data
:
{
start_clock
:
true
,
attempt_proctored
:
true
,
exam_id
:
$
(
'.instructions'
).
data
(
'exam-id'
)
}
);
});
</script>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment