Commit 5811fdc8 by Dave St.Germain

Merge pull request #3506 from edx/dcs/LMS-2562

Set the page in the correct place.
parents 37d3d4a8 14f2f67c
...@@ -101,6 +101,7 @@ def pdf_index(request, course_id, book_index, chapter=None, page=None): ...@@ -101,6 +101,7 @@ def pdf_index(request, course_id, book_index, chapter=None, page=None):
viewer_params += current_chapter['url'] viewer_params += current_chapter['url']
current_url = current_chapter['url'] current_url = current_chapter['url']
viewer_params += '#zoom=page-fit'
if page is not None: if page is not None:
viewer_params += '&page={}'.format(page) viewer_params += '&page={}'.format(page)
......
...@@ -44,7 +44,7 @@ $(function(){ ...@@ -44,7 +44,7 @@ $(function(){
<iframe <iframe
title="${current_chapter['title']|h}" title="${current_chapter['title']|h}"
id="viewer-frame" id="viewer-frame"
src="${request.path}?viewer=true${viewer_params}#zoom=page-fit" src="${request.path}?viewer=true${viewer_params}"
width="856" width="856"
height="1108" height="1108"
frameborder="0" frameborder="0"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment