1
0
Fork 0
mirror of https://github.com/Yetangitu/owncloud-apps.git synced 2025-10-02 14:49:17 +02:00

files_reade: working towards working search, W.I.P.

This commit is contained in:
frankdelange 2017-03-29 15:42:27 +02:00
parent 2dd54dd028
commit 4b31f04330
14 changed files with 580 additions and 173 deletions

View file

@ -5,7 +5,6 @@ PDFJS.reader.OutlineController = function(_outline) {
outline = _outline || [];
var outlineView = document.getElementById("outlineView"),
$list = $("#outlineView"),
baseUrl = location.href.split('#')[0],
lastToggleIsShow;
@ -113,9 +112,6 @@ PDFJS.reader.OutlineController = function(_outline) {
return container;
}
console.log(outline);
var onShow = function() {
outlineView.classList.add('open');
};
@ -124,28 +120,9 @@ PDFJS.reader.OutlineController = function(_outline) {
outlineView.classList.remove('open');
};
$list.append(generateOutlineItems(outline));
outlineView.appendChild(generateOutlineItems(outline));
/*
$list.find(".outline_link").on("click", function(event){
var url = this.getAttribute('href');
event.preventDefault();
//-- Provide the Book with the url to show
// The Url must be found in the books manifest
book.goto(url);
$list.find(".currentChapter")
.addClass("openChapter")
.removeClass("currentChapter");
$(this).parent('li').addClass("currentChapter");
});
*/
$list.find(".outline_toggle").on("click", function(event){
$(outlineView).find(".outline_toggle").on("click", function(event){
var $el = $(this).parent('li'),
open = $el.hasClass("openChapter");