diff --git a/bower.json b/bower.json index fd115ef43..5cc9735b8 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.370", + "version": "1.1.373", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index f9c4edfd8..d51436543 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.1.370'; -PDFJS.build = '47aec95'; +PDFJS.version = '1.1.373'; +PDFJS.build = 'de979f1'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/build/pdf.js b/build/pdf.js index 0cd77412b..6276c5fce 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.1.370'; -PDFJS.build = '47aec95'; +PDFJS.version = '1.1.373'; +PDFJS.build = 'de979f1'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 285f3284e..5bf9a3d05 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.1.370'; -PDFJS.build = '47aec95'; +PDFJS.version = '1.1.373'; +PDFJS.build = 'de979f1'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/package.json b/package.json index ac24cb1aa..4d97a4d6f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.370", + "version": "1.1.373", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla", diff --git a/web/pdf_viewer.js b/web/pdf_viewer.js index a0753f114..8100fd4fb 100644 --- a/web/pdf_viewer.js +++ b/web/pdf_viewer.js @@ -632,13 +632,11 @@ var PDFLinkService = (function () { this.page = pageNumber; // simple page } if ('pagemode' in params) { - if (params.pagemode === 'thumbs' || params.pagemode === 'bookmarks' || - params.pagemode === 'attachments') { - this.switchSidebarView((params.pagemode === 'bookmarks' ? - 'outline' : params.pagemode), true); - } else if (params.pagemode === 'none' && this.sidebarOpen) { - document.getElementById('sidebarToggle').click(); - } + var event = document.createEvent('CustomEvent'); + event.initCustomEvent('pagemode', true, true, { + mode: params.pagemode, + }); + this.pdfViewer.container.dispatchEvent(event); } } else if (/^\d+$/.test(hash)) { // page number this.page = hash;