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
edx
edx-proctoring
Commits
5da7e04f
Commit
5da7e04f
authored
Aug 21, 2015
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some tweeks
parent
b62126c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
edx_proctoring/static/proctoring/js/views/proctored_exam_attempt_view.js
+4
-3
No files found.
edx_proctoring/static/proctoring/js/views/proctored_exam_attempt_view.js
View file @
5da7e04f
...
@@ -118,14 +118,15 @@ var edx = edx || {};
...
@@ -118,14 +118,15 @@ var edx = edx || {};
var
data_json
=
this
.
collection
.
toJSON
()[
0
];
var
data_json
=
this
.
collection
.
toJSON
()[
0
];
// calculate which pages ranges to display
// calculate which pages ranges to display
// show no more than 7 pages at the same time
// show no more than 5 pages at the same time
var
start_page
=
data_json
.
pagination_info
.
current_page
-
3
;
var
start_page
=
data_json
.
pagination_info
.
current_page
-
2
;
var
end_page
=
data_json
.
pagination_info
.
current_page
+
3
;
if
(
start_page
<
1
)
{
if
(
start_page
<
1
)
{
start_page
=
1
;
start_page
=
1
;
}
}
var
end_page
=
start_page
+
4
;
if
(
end_page
>
data_json
.
pagination_info
.
total_pages
)
{
if
(
end_page
>
data_json
.
pagination_info
.
total_pages
)
{
end_page
=
data_json
.
pagination_info
.
total_pages
;
end_page
=
data_json
.
pagination_info
.
total_pages
;
}
}
...
...
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