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
5e550a3f
Commit
5e550a3f
authored
Nov 03, 2016
by
Diana Huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increment banner polling from 30 seconds to 60 seconds.
parent
cb9e7767
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
edx_proctoring/static/proctoring/js/views/proctored_exam_view.js
+2
-1
edx_proctoring/static/proctoring/spec/proctored_exam_spec.js
+1
-1
No files found.
edx_proctoring/static/proctoring/js/views/proctored_exam_view.js
View file @
5e550a3f
...
...
@@ -20,6 +20,7 @@ var edx = edx || {};
this
.
secondsLeft
=
0
;
/* give an extra 5 seconds where the timer holds at 00:00 before page refreshes */
this
.
grace_period_secs
=
5
;
this
.
poll_interval
=
60
;
this
.
first_time_rendering
=
true
;
// we need to keep a copy here because the model will
...
...
@@ -136,7 +137,7 @@ var edx = edx || {};
updateRemainingTime
:
function
(
self
)
{
self
.
timerTick
++
;
self
.
secondsLeft
--
;
if
(
self
.
timerTick
%
30
===
0
)
{
if
(
self
.
timerTick
%
self
.
poll_interval
===
0
)
{
var
url
=
self
.
model
.
url
+
'/'
+
self
.
model
.
get
(
'attempt_id'
);
var
queryString
=
'?sourceid=in_exam&proctored='
+
self
.
model
.
get
(
'taking_as_proctored'
);
$
.
ajax
(
url
+
queryString
).
success
(
function
(
data
)
{
...
...
edx_proctoring/static/proctoring/spec/proctored_exam_spec.js
View file @
5e550a3f
...
...
@@ -75,7 +75,7 @@ describe('ProctoredExamView', function () {
})
]
);
this
.
proctored_exam_view
.
timerTick
=
29
;
// to make the ajax call.
this
.
proctored_exam_view
.
timerTick
=
this
.
proctored_exam_view
.
poll_interval
-
1
;
// to make the ajax call.
var
reloadPage
=
spyOn
(
this
.
proctored_exam_view
,
'reloadPage'
);
this
.
proctored_exam_view
.
updateRemainingTime
(
this
.
proctored_exam_view
);
this
.
server
.
respond
();
...
...
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