Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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-platform
Commits
5811fdc8
Commit
5811fdc8
authored
Apr 30, 2014
by
Dave St.Germain
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3506 from edx/dcs/LMS-2562
Set the page in the correct place.
parents
37d3d4a8
14f2f67c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
lms/djangoapps/staticbook/views.py
+1
-0
lms/templates/static_pdfbook.html
+1
-1
No files found.
lms/djangoapps/staticbook/views.py
View file @
5811fdc8
...
...
@@ -101,6 +101,7 @@ def pdf_index(request, course_id, book_index, chapter=None, page=None):
viewer_params
+=
current_chapter
[
'url'
]
current_url
=
current_chapter
[
'url'
]
viewer_params
+=
'#zoom=page-fit'
if
page
is
not
None
:
viewer_params
+=
'&page={}'
.
format
(
page
)
...
...
lms/templates/static_pdfbook.html
View file @
5811fdc8
...
...
@@ -44,7 +44,7 @@ $(function(){
<iframe
title=
"${current_chapter['title']|h}"
id=
"viewer-frame"
src=
"${request.path}?viewer=true${viewer_params}
#zoom=page-fit
"
src=
"${request.path}?viewer=true${viewer_params}"
width=
"856"
height=
"1108"
frameborder=
"0"
...
...
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