From: Artur Adib Date: Thu, 12 Apr 2012 23:38:45 +0000 (-0700) Subject: bug fix (works with intelisa) X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=a8bb575fd8da6e2a03da23f98f929d2b88c82849;p=pdf.js.git bug fix (works with intelisa) --- diff --git a/web/viewer.js b/web/viewer.js index 2ce5397..5a4b573 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -533,7 +533,7 @@ var PDFView = { if (pdf.catalog.documentOutline) { this.outline = new DocumentOutlineView(pdf.catalog.documentOutline); - var outlineSwitchButton = document.getElementById('outlineSwitch'); + var outlineSwitchButton = document.getElementById('viewOutline'); outlineSwitchButton.removeAttribute('disabled'); this.switchSidebarView('outline'); } @@ -620,8 +620,8 @@ var PDFView = { switchSidebarView: function pdfViewSwitchSidebarView(view) { var thumbsView = document.getElementById('thumbnailView'); var outlineView = document.getElementById('outlineView'); - var thumbsSwitchButton = document.getElementById('thumbsSwitch'); - var outlineSwitchButton = document.getElementById('outlineSwitch'); + var thumbsSwitchButton = document.getElementById('viewThumbnail'); + var outlineSwitchButton = document.getElementById('viewOutline'); if (outlineSwitchButton.getAttribute('disabled')) return;