Add the viewBookmark button to the secondary toolbar
This commit is contained in:
parent
ea50c078b0
commit
b148c9cb51
3 changed files with 29 additions and 12 deletions
|
@ -1909,6 +1909,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);
|
||||
|
@ -1952,6 +1953,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