taler-www

Main taler.net website
Log | Files | Refs | Submodules | README | LICENSE

commit be81438e366a88d278e091fd3e6dc5743d7ab1af
parent e87f8ccb95edcf3dab4c7b46fe9f6547303814d3
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue,  7 Mar 2017 16:36:34 +0100

fix JS issues in PDF renderer

Diffstat:
Mdist/js/pdf-view.js | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git 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); });