mirror of
https://github.com/Yetangitu/owncloud-apps.git
synced 2025-10-02 14:49:17 +02:00
- files_reader v1.1, now supports PDF, see CHANGELOG.md and README.md
for change information
This commit is contained in:
parent
f909cd0f1b
commit
6a0d095d45
29 changed files with 1178 additions and 366 deletions
|
@ -464,6 +464,7 @@ PDFJS.reader.SearchController = function () {
|
|||
var root = document.getElementById("searchResults"),
|
||||
item,
|
||||
match,
|
||||
matchlist,
|
||||
i;
|
||||
|
||||
item = root.getElementsByClassName("selected");
|
||||
|
@ -472,12 +473,13 @@ PDFJS.reader.SearchController = function () {
|
|||
|
||||
match = document.getElementById("match:" + selected.pageIdx + ":" + selected.matchIdx);
|
||||
match.classList.add("selected");
|
||||
match = document.getElementsByClassName("match:" + selected.pageIdx + ":" + selected.matchIdx);
|
||||
for (i = 0; i < match.length; i++)
|
||||
match[i].classList.add("selected_again");
|
||||
|
||||
|
||||
updateMatchCounter(match.dataset.index);
|
||||
|
||||
//matchlist = document.getElementsByClassName("match:" + selected.pageIdx + ":" + selected.matchIdx);
|
||||
//for (i = 0; i < matchlist.length; i++)
|
||||
// matchlist[i].classList.add("selected_again");
|
||||
|
||||
if (!reader.isVisible(match))
|
||||
match.scrollIntoView();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue