fix bug with nav to a page, and add pdfviewer.css.

This commit is contained in:
Brian Wilson
2013-02-21 03:15:08 -05:00
parent 1850528a99
commit 731f4abd8a
3 changed files with 744 additions and 4 deletions

View File

@@ -9,7 +9,7 @@
<%block name="headextra">
<%static:css group='course'/>
<%static:js group='courseware'/>
<link rel="stylesheet" href="/static/css/vendor/pdfjs/myviewer.css"/>
<link rel="stylesheet" href="/static/css/pdfviewer.css"/>
<script type="text/javascript" src="/static/js/vendor/pdfjs/pdf.js"></script>
<script type="text/javascript" src="/static/js/pdfviewer.js"></script>
</%block>
@@ -22,7 +22,7 @@
$(document).ready(function() {
$('#outerContainer').PDFViewer( {
% if page is not None:
'pageNum' : page,
'pageNum' : ${page},
% endif
'url' : url
});