aboutsummaryrefslogtreecommitdiff
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
parente87f8ccb95edcf3dab4c7b46fe9f6547303814d3 (diff)
downloadwww-be81438e366a88d278e091fd3e6dc5743d7ab1af.tar.gz
www-be81438e366a88d278e091fd3e6dc5743d7ab1af.zip
fix JS issues in PDF renderer
-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 51251dce..b002085e 100644
--- a/dist/js/pdf-view.js
+++ b/dist/js/pdf-view.js
@@ -44,9 +44,6 @@ function renderPage(canvas,num) {
44 } 44 }
45 }); 45 });
46 }); 46 });
47
48 // Update page counters
49 document.getElementById('page_num').textContent = pageNum;
50} 47}
51 48
52/** 49/**
@@ -96,5 +93,6 @@ PDFJS.getDocument(url).then(function(pdfDoc_) {
96 pdfDoc = pdfDoc_; 93 pdfDoc = pdfDoc_;
97 94
98 // Initial/first page rendering 95 // Initial/first page rendering
99 renderPage(pageNum); 96 renderPage(canvasLeft,pageNum);
97 renderPage(canvasRight,pageNum + 1);
100}); 98});