From: Vincent Vanwaelscappel Date: Tue, 17 Dec 2019 14:02:29 +0000 (+0100) Subject: fix #3261 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=8a17d8af8e4f34070342854f3d2e6bb5010c8749;p=fluidbook-html5.git fix #3261 @0.5 --- diff --git a/js/libs/fluidbook/fluidbook.bookmarks.js b/js/libs/fluidbook/fluidbook.bookmarks.js index ccf6f344..e82148c0 100644 --- a/js/libs/fluidbook/fluidbook.bookmarks.js +++ b/js/libs/fluidbook/fluidbook.bookmarks.js @@ -348,7 +348,10 @@ FluidbookBookmarks.prototype = { isBookmarked: function (page) { return this.bookmarks.indexOf(page) > -1; }, - getBookmarkForPage: function (pageNr, allwaysAtRight) { + getBookmarkForPage: function (pageNr, allwaysAtRight, permanentIcon) { + if (permanentIcon === undefined) { + permanentIcon = false; + } if (allwaysAtRight === undefined) { allwaysAtRight = false; } @@ -368,6 +371,10 @@ FluidbookBookmarks.prototype = { return ''; } + if (permanentIcon) { + side += ' permanent'; + } + bookmarks += "'; return bookmarks; diff --git a/js/libs/fluidbook/fluidbook.links.js b/js/libs/fluidbook/fluidbook.links.js index 32e75423..99c0263b 100644 --- a/js/libs/fluidbook/fluidbook.links.js +++ b/js/libs/fluidbook/fluidbook.links.js @@ -187,8 +187,8 @@ FluidbookLinks.prototype = { leftContainer.html(this.fluidbook.datas.links[leftPage]); if (this.fluidbook.datas.bookmark) { - leftContainer.append(this.fluidbook.bookmarks.getBookmarkForPage(leftPage, this.fluidbook.displayOnePage)); - rightContainer.append(this.fluidbook.bookmarks.getBookmarkForPage(rightPage, this.fluidbook.displayOnePage)); + leftContainer.append(this.fluidbook.bookmarks.getBookmarkForPage(leftPage, this.fluidbook.displayOnePage, this.fluidbook.datas.bookmarkPermanentIcon)); + rightContainer.append(this.fluidbook.bookmarks.getBookmarkForPage(rightPage, this.fluidbook.displayOnePage, this.fluidbook.datas.bookmarkPermanentIcon)); } if (this.fluidbook.displayOnePage) { @@ -579,7 +579,7 @@ FluidbookLinks.prototype = { containerHeight = iframeHeight; } iframe.attr('height', height); - iframe.closest('.multimediaScale').css('height',height); + iframe.closest('.multimediaScale').css('height', height); container.css({maxHeight: Math.min(iframeHeight, containerHeight)}); if (!Modernizr.ftouch) { container.perfectScrollbar('update'); diff --git a/style/fluidbook.less b/style/fluidbook.less index 5ab214d9..d876fef1 100644 --- a/style/fluidbook.less +++ b/style/fluidbook.less @@ -1332,7 +1332,7 @@ html.ios body.portrait #interface { display: block; cursor: pointer; - &[data-enabled], &:hover { + &[data-enabled], &:hover, &.permanent { opacity: 1 !important; transition: none; }