mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-21 15:48:06 +02:00
Update PDFOutlineViewer_bindLink
to look more like LinkAnnotationElement_bindLink
This commit is contained in:
parent
47a1c7797e
commit
d5e3b2fbf0
2 changed files with 8 additions and 5 deletions
|
@ -90,10 +90,13 @@ var PDFOutlineViewer = (function PDFOutlineViewerClosure() {
|
|||
});
|
||||
return;
|
||||
}
|
||||
var linkService = this.linkService;
|
||||
element.href = linkService.getDestinationHash(item.dest);
|
||||
element.onclick = function goToDestination(e) {
|
||||
linkService.navigateTo(item.dest);
|
||||
var self = this, destination = item.dest;
|
||||
|
||||
element.href = self.linkService.getDestinationHash(destination);
|
||||
element.onclick = function () {
|
||||
if (destination) {
|
||||
self.linkService.navigateTo(destination);
|
||||
}
|
||||
return false;
|
||||
};
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue