Merge pull request #3774 from Snuffleupagus/contextMenu-PresentationMode

Enabling clicking to close the context menu in Presentation Mode, without going to the next page
This commit is contained in:
Tim van der Meij 2013-10-08 11:31:02 -07:00
commit 64757dd481
2 changed files with 46 additions and 13 deletions

View file

@ -153,7 +153,12 @@ var PDFView = {
});
PresentationMode.initialize({
container: container
container: container,
secondaryToolbar: SecondaryToolbar,
firstPage: document.getElementById('contextFirstPage'),
lastPage: document.getElementById('contextLastPage'),
pageRotateCw: document.getElementById('contextPageRotateCw'),
pageRotateCcw: document.getElementById('contextPageRotateCcw')
});
this.initialized = true;
@ -1655,18 +1660,6 @@ document.addEventListener('DOMContentLoaded', function webViewerLoad(evt) {
document.getElementById('download').addEventListener('click',
SecondaryToolbar.downloadClick.bind(SecondaryToolbar));
document.getElementById('contextFirstPage').addEventListener('click',
SecondaryToolbar.firstPageClick.bind(SecondaryToolbar));
document.getElementById('contextLastPage').addEventListener('click',
SecondaryToolbar.lastPageClick.bind(SecondaryToolbar));
document.getElementById('contextPageRotateCw').addEventListener('click',
SecondaryToolbar.pageRotateCwClick.bind(SecondaryToolbar));
document.getElementById('contextPageRotateCcw').addEventListener('click',
SecondaryToolbar.pageRotateCcwClick.bind(SecondaryToolbar));
//#if (FIREFOX || MOZCENTRAL)
//PDFView.setTitleUsingUrl(file);
//PDFView.initPassiveLoading();