]> git.parisson.com Git - pdf.js.git/commitdiff
Fix url for thumbnail. (still not working 100)
authorBrendan Dahl <brendan.dahl@gmail.com>
Fri, 27 Jan 2012 18:53:37 +0000 (10:53 -0800)
committerBrendan Dahl <brendan.dahl@gmail.com>
Fri, 27 Jan 2012 18:53:37 +0000 (10:53 -0800)
web/viewer.js

index 790b5ae63d6b124b311d7a563b5048bf42a1525e..3431e18c404be4272b0befa7bbb4971be447a61c 100644 (file)
@@ -862,7 +862,7 @@ var PageView = function pageView(container, content, id, pageWidth, pageHeight,
 
 var ThumbnailView = function thumbnailView(container, page, id, pageRatio) {
   var anchor = document.createElement('a');
-  anchor.href = '#' + id;
+  anchor.href = PDFView.getAnchorUrl('#page=' + id);
   anchor.onclick = function stopNivigation() {
     PDFView.page = id;
     return false;