From b5413b1ba040b558cc2cc5fdaa810d409e0620af Mon Sep 17 00:00:00 2001 From: fschneider Date: Thu, 13 Aug 2015 09:50:20 +0200 Subject: SignaturePlacement-changes --- pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.js | 7 +++++-- pdf-as-web/src/main/webapp/index.jsp | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'pdf-as-web/src/main/webapp') diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.js b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.js index 605d49a9..f31d5dc5 100644 --- a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.js +++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.js @@ -180,7 +180,6 @@ function scrollIntoView(element, spot) { */ function watchScroll(viewAreaElement, callback) { - console.log("watch scroll"); var debounceScroll = function debounceScroll(evt) { if (rAF) { return; @@ -198,6 +197,8 @@ function watchScroll(viewAreaElement, callback) { state.lastY = currentY; + // place the signature again on current page + $("#placeSignature").click(); callback(state); }); @@ -2955,11 +2956,12 @@ var PDFRenderingQueue = (function PDFRenderingQueueClosure() { if (views[previousPageIndex] && !this.isViewFinished(views[previousPageIndex])) { console.log("got to page: " + nextPageIndex); - $("#placeSignature").click(); + return views[previousPageIndex]; } } // Everything that needs to be rendered has been. + return null; }, @@ -6335,6 +6337,7 @@ var PDFViewerApplication = { }); console.log("pdfview just finished loading"); + }, setInitialView: function pdfViewSetInitialView(storedHash, scale) { diff --git a/pdf-as-web/src/main/webapp/index.jsp b/pdf-as-web/src/main/webapp/index.jsp index fdd3c53e..492e9d28 100644 --- a/pdf-as-web/src/main/webapp/index.jsp +++ b/pdf-as-web/src/main/webapp/index.jsp @@ -164,10 +164,10 @@
-
Add +
new page
-
Continue +
continue
-- cgit v1.2.3