Merge pull request #3506 from edx/dcs/LMS-2562
Set the page in the correct place.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user