mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Merge pull request #3739 from Snuffleupagus/bug-921162
Add the viewBookmark button to the Secondary Toolbar
This commit is contained in:
commit
a68375c48e
3 changed files with 29 additions and 12 deletions
|
@ -1728,6 +1728,7 @@ function updateViewarea() {
|
|||
});
|
||||
var href = PDFView.getAnchorUrl(pdfOpenParams);
|
||||
document.getElementById('viewBookmark').href = href;
|
||||
document.getElementById('secondaryViewBookmark').href = href;
|
||||
|
||||
// Update the current bookmark in the browsing history.
|
||||
PDFHistory.updateCurrentBookmark(pdfOpenParams, pageNumber);
|
||||
|
@ -1771,6 +1772,8 @@ window.addEventListener('change', function webViewerChange(evt) {
|
|||
|
||||
// URL does not reflect proper document location - hiding some icons.
|
||||
document.getElementById('viewBookmark').setAttribute('hidden', 'true');
|
||||
document.getElementById('secondaryViewBookmark').
|
||||
setAttribute('hidden', 'true');
|
||||
document.getElementById('download').setAttribute('hidden', 'true');
|
||||
document.getElementById('secondaryDownload').setAttribute('hidden', 'true');
|
||||
}, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue