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
53e3b1d5
Commit
53e3b1d5
authored
Jul 16, 2015
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make sure we remove the polling interval before the confirmation dialog
parent
5b074962
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
edx_proctoring/api.py
+1
-1
edx_proctoring/static/proctoring/js/views/proctored_exam_view.js
+4
-4
edx_proctoring/templates/proctoring/seq_proctored_exam_instructions.html
+6
-1
No files found.
edx_proctoring/api.py
View file @
53e3b1d5
...
@@ -212,7 +212,7 @@ def create_exam_attempt(exam_id, user_id, taking_as_proctored=False):
...
@@ -212,7 +212,7 @@ def create_exam_attempt(exam_id, user_id, taking_as_proctored=False):
allowance_extra_mins
=
int
(
allowance
.
value
)
allowance_extra_mins
=
int
(
allowance
.
value
)
allowed_time_limit_mins
+=
allowance_extra_mins
allowed_time_limit_mins
+=
allowance_extra_mins
attempt_code
=
unicode
(
uuid
.
uuid4
())
attempt_code
=
unicode
(
uuid
.
uuid4
()
.
upper
()
)
external_id
=
None
external_id
=
None
if
taking_as_proctored
:
if
taking_as_proctored
:
...
...
edx_proctoring/static/proctoring/js/views/proctored_exam_view.js
View file @
53e3b1d5
var
edx
=
edx
||
{};
var
edx
=
edx
||
{};
(
function
(
Backbone
,
$
,
_
)
{
(
function
(
Backbone
,
$
,
_
,
gettext
)
{
'use strict'
;
'use strict'
;
edx
.
coursware
=
edx
.
coursware
||
{};
edx
.
coursware
=
edx
.
coursware
||
{};
...
@@ -61,11 +61,11 @@ var edx = edx || {};
...
@@ -61,11 +61,11 @@ var edx = edx || {};
return
this
;
return
this
;
},
},
unloadMessage
:
function
()
{
unloadMessage
:
function
()
{
return
"As you are currently taking a proctored exam,
\
n"
+
return
gettext
(
"As you are currently taking a proctored exam,
\
n"
+
"you should not be navigation away from the exam.
\
n"
+
"you should not be navigation away from the exam.
\
n"
+
"This may be considered as a violation of the
\
n"
+
"This may be considered as a violation of the
\
n"
+
"proctored exam and you may be disqualified for
\
n"
+
"proctored exam and you may be disqualified for
\
n"
+
"credit eligibility in this course.
\
n"
;
"credit eligibility in this course.
\
n"
)
;
},
},
updateRemainingTime
:
function
(
self
)
{
updateRemainingTime
:
function
(
self
)
{
self
.
$el
.
find
(
'div.exam-timer'
).
removeClass
(
"low-time warning critical"
);
self
.
$el
.
find
(
'div.exam-timer'
).
removeClass
(
"low-time warning critical"
);
...
@@ -80,4 +80,4 @@ var edx = edx || {};
...
@@ -80,4 +80,4 @@ var edx = edx || {};
}
}
});
});
this
.
edx
.
coursware
.
proctored_exam
.
ProctoredExamView
=
edx
.
coursware
.
proctored_exam
.
ProctoredExamView
;
this
.
edx
.
coursware
.
proctored_exam
.
ProctoredExamView
=
edx
.
coursware
.
proctored_exam
.
ProctoredExamView
;
}).
call
(
this
,
Backbone
,
$
,
_
);
}).
call
(
this
,
Backbone
,
$
,
_
,
gettext
);
edx_proctoring/templates/proctoring/seq_proctored_exam_instructions.html
View file @
53e3b1d5
...
@@ -42,6 +42,8 @@
...
@@ -42,6 +42,8 @@
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
var
_waiting_for_proctored_interval
=
null
;
$
(
document
).
ready
(
function
(){
$
(
document
).
ready
(
function
(){
var
hasFlash
=
false
;
var
hasFlash
=
false
;
...
@@ -85,7 +87,7 @@
...
@@ -85,7 +87,7 @@
);
);
}
}
setInterval
(
_waiting_for_proctored_interval
=
setInterval
(
poll_exam_started
,
poll_exam_started
,
5000
5000
);
);
...
@@ -95,6 +97,9 @@
...
@@ -95,6 +97,9 @@
var
url
=
$
(
'.instructions'
).
data
(
'exam-started-poll-url'
)
var
url
=
$
(
'.instructions'
).
data
(
'exam-started-poll-url'
)
$
.
ajax
(
url
).
success
(
function
(
data
){
$
.
ajax
(
url
).
success
(
function
(
data
){
if
(
data
.
started_at
!==
null
)
{
if
(
data
.
started_at
!==
null
)
{
if
(
_waiting_for_proctored_interval
!=
null
)
{
clearInterval
(
_waiting_for_proctored_interval
)
}
// Let the student know exam has started and clock is running.
// Let the student know exam has started and clock is running.
// this may or may not bring the browser window back to the
// this may or may not bring the browser window back to the
// foreground (depending on browser as well as user settings)
// foreground (depending on browser as well as user settings)
...
...
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