Merge pull request #3739 from Snuffleupagus/bug-921162

Add the viewBookmark button to the Secondary Toolbar
This commit is contained in:
Tim van der Meij 2013-10-04 13:16:38 -07:00
commit a68375c48e
3 changed files with 29 additions and 12 deletions

View file

@ -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);