Remove ids from viewer page and thumbnail divs
The id, and parsing it for the page number, is replaced by the data-page-number attribute (added here for thumbnails).
This commit is contained in:
parent
a917443ae6
commit
52360694b0
3 changed files with 3 additions and 3 deletions
|
@ -87,7 +87,8 @@ var PDFThumbnailViewer = (function PDFThumbnailViewerClosure() {
|
|||
if (selected) {
|
||||
selected.classList.remove('selected');
|
||||
}
|
||||
var thumbnail = document.getElementById('thumbnailContainer' + page);
|
||||
var thumbnail = document.querySelector(
|
||||
'div.thumbnail[data-page-number="' + page + '"]');
|
||||
if (thumbnail) {
|
||||
thumbnail.classList.add('selected');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue