diff options
author | fschneider <florian.schneider@student.tugraz.at> | 2015-08-13 09:50:20 +0200 |
---|---|---|
committer | fschneider <florian.schneider@student.tugraz.at> | 2015-08-13 09:50:20 +0200 |
commit | b5413b1ba040b558cc2cc5fdaa810d409e0620af (patch) | |
tree | 1383323e22733321ac38bf8b5c089fa842ef0e3b /pdf-as-web/src | |
parent | 8e4965691bb325cda56d6d3f2abc0e2da18c45ca (diff) | |
download | pdf-as-4-b5413b1ba040b558cc2cc5fdaa810d409e0620af.tar.gz pdf-as-4-b5413b1ba040b558cc2cc5fdaa810d409e0620af.tar.bz2 pdf-as-4-b5413b1ba040b558cc2cc5fdaa810d409e0620af.zip |
SignaturePlacement-changes
Diffstat (limited to 'pdf-as-web/src')
-rw-r--r-- | pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.js | 7 | ||||
-rw-r--r-- | pdf-as-web/src/main/webapp/index.jsp | 4 |
2 files changed, 7 insertions, 4 deletions
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 @@ <div class="center"> <div id="ViewerExternToolbar" class="center"> <div id="placeSignatureExtern"> - <img src="assets/img/federohne.svg" title="Place Signature on current Page"><br>Add + <img src="assets/img/federohne.svg" title="Place Signature on current Page"><br>new page </div> <div id="placeContinue"> - <img src="assets/img/federohne.svg" title="Continue"><br>Continue + <img src="assets/img/federohne.svg" title="Continue"><br>continue </div> </div> </div> |