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

Set the page in the correct place.
This commit is contained in:
Dave St.Germain
2014-04-30 11:30:09 -04:00
2 changed files with 2 additions and 1 deletions

View File

@@ -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)

View File

@@ -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"