Enabling clicking to close the context menu in Presentation Mode, without going to the next page

This commit is contained in:
Jonas Jenwald 2013-10-08 20:11:04 +02:00
parent 6d1533293e
commit dfb8e62079
2 changed files with 46 additions and 13 deletions

View file

@ -148,7 +148,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;
@ -1650,18 +1655,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();