1
0
Fork 0
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:
frankdelange 2018-01-18 01:08:41 +01:00
parent f909cd0f1b
commit 6a0d095d45
29 changed files with 1178 additions and 366 deletions

View file

@ -121,15 +121,16 @@ PDFJS.reader.ControlsController = function(book) {
});
$bookmark.on("click", function() {
var cfi = reader.book.getCurrentLocationCfi();
var currentPage = reader.settings.currentPage,
bmc = reader.BookmarksController;
if(!(reader.isBookmarked(cfi))) { //-- Add bookmark
reader.addBookmark(cfi);
if(!bmc.isBookmarked(currentPage)) { //-- Add bookmark
bmc.addBookmark(currentPage);
$bookmark
.addClass("icon-turned_in")
.removeClass("icon-turned_in_not");
} else { //-- Remove Bookmark
reader.removeBookmark(cfi);
bmc.removeBookmark(currentPage);
$bookmark
.removeClass("icon-turned_in")
.addClass("icon-turned_in_not");