summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-03-07 16:36:34 +0100
committerChristian Grothoff <christian@grothoff.org>2017-03-07 16:36:34 +0100
commitbe81438e366a88d278e091fd3e6dc5743d7ab1af (patch)
tree47209390783cd54cc78d04fe24a9c3c6071a852a /dist
parente87f8ccb95edcf3dab4c7b46fe9f6547303814d3 (diff)
downloadwww-be81438e366a88d278e091fd3e6dc5743d7ab1af.tar.gz
www-be81438e366a88d278e091fd3e6dc5743d7ab1af.tar.bz2
www-be81438e366a88d278e091fd3e6dc5743d7ab1af.zip
fix JS issues in PDF renderer
Diffstat (limited to 'dist')
-rw-r--r--dist/js/pdf-view.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/dist/js/pdf-view.js b/dist/js/pdf-view.js
index 51251dc..b002085 100644
--- a/dist/js/pdf-view.js
+++ b/dist/js/pdf-view.js
@@ -44,9 +44,6 @@ function renderPage(canvas,num) {
}
});
});
-
- // Update page counters
- document.getElementById('page_num').textContent = pageNum;
}
/**
@@ -96,5 +93,6 @@ PDFJS.getDocument(url).then(function(pdfDoc_) {
pdfDoc = pdfDoc_;
// Initial/first page rendering
- renderPage(pageNum);
+ renderPage(canvasLeft,pageNum);
+ renderPage(canvasRight,pageNum + 1);
});