Commit 4ec6eb21 authored by Son Nguyen's avatar Son Nguyen Committed by Robert Lyon
Browse files

Configure the pdfjs javascript lib (Bug #1036556)



Disable Open file feature

Change-Id: I36768339a8f6db695a21c0aa9c67f58596fa50e1
Signed-off-by: default avatarSon Nguyen <sonn@catalyst.net.nz>
Signed-off-by: Aaron Wells's avatarAaron Wells <aaronw@catalyst.net.nz>
parent 51ebf4c0
......@@ -18,4 +18,5 @@ Build Instructions:
Changes:
* by Son Nguyen, 26 Apr 13: updated location of pdf.js in viewer.html and viewer.js
* Change location of sample PDF file
* Remove "open file" button
......@@ -23,7 +23,7 @@
'use strict';
var DEFAULT_URL = 'compressed.tracemonkey-pldi-09.pdf';
var DEFAULT_URL = wwwroot + '/artefact/file/blocktype/pdf/js/pdfjs/web/sample.pdf';
var DEFAULT_SCALE = 'auto';
var DEFAULT_SCALE_DELTA = 1.1;
var UNKNOWN_SCALE = 0;
......@@ -5243,8 +5243,8 @@ function webViewerInitialized() {
document.getElementById('presentationMode').addEventListener('click',
SecondaryToolbar.presentationModeClick.bind(SecondaryToolbar));
document.getElementById('openFile').addEventListener('click',
SecondaryToolbar.openFileClick.bind(SecondaryToolbar));
// document.getElementById('openFile').addEventListener('click',
// SecondaryToolbar.openFileClick.bind(SecondaryToolbar));
document.getElementById('print').addEventListener('click',
SecondaryToolbar.printClick.bind(SecondaryToolbar));
......
......@@ -79,9 +79,11 @@
<span data-l10n-id="presentation_mode_label">Presentation Mode</span>
</button>
<!--
<button id="secondaryOpenFile" class="secondaryToolbarButton openFile visibleLargeView" title="Open File" tabindex="19" data-l10n-id="open_file">
<span data-l10n-id="open_file_label">Open</span>
</button>
-->
<button id="secondaryPrint" class="secondaryToolbarButton print visibleMediumView" title="Print" tabindex="20" data-l10n-id="print">
<span data-l10n-id="print_label">Print</span>
......@@ -155,11 +157,11 @@
<button id="presentationMode" class="toolbarButton presentationMode hiddenLargeView" title="Switch to Presentation Mode" tabindex="12" data-l10n-id="presentation_mode">
<span data-l10n-id="presentation_mode_label">Presentation Mode</span>
</button>
<!--
<button id="openFile" class="toolbarButton openFile hiddenLargeView" title="Open File" tabindex="13" data-l10n-id="open_file">
<span data-l10n-id="open_file_label">Open</span>
</button>
-->
<button id="print" class="toolbarButton print hiddenMediumView" title="Print" tabindex="14" data-l10n-id="print">
<span data-l10n-id="print_label">Print</span>
</button>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment