X-Git-Url: http://git.rot13.org/?p=bookreader.git;a=blobdiff_plain;f=BookReader%2FBookReader.js;h=01baa27b5f9889963284a1cc69bf2654dbe0ae80;hp=2d64c6992648b6cc35d2c7a5cf8c55fd40917bff;hb=a75777a46cd09dcaea6ef0ac4667b6d4ef6a8f4e;hpb=0ffa82f5466c65dc2c02c1ab6e33042f55db49bc diff --git a/BookReader/BookReader.js b/BookReader/BookReader.js index 2d64c69..01baa27 100644 --- a/BookReader/BookReader.js +++ b/BookReader/BookReader.js @@ -1498,7 +1498,7 @@ BookReader.prototype.prepareTwoPageView = function(centerPercentageX, centerPerc $(this.twoPage.coverDiv).attr('id', 'BRbookcover').css({ width: this.twoPage.bookCoverDivWidth + 'px', height: this.twoPage.bookCoverDivHeight+'px', - visibility: 'visible', + visibility: 'visible' }).appendTo('#BRtwopageview'); this.leafEdgeR = document.createElement('div'); @@ -3475,6 +3475,9 @@ BookReader.prototype.addSearchResult = function(queryString, pageIndex) { shadow: false }) .hover( function() { + // remove from other markers then turn on just for this + // XXX should be done when nav slider moves + $('.search,.chapter').removeClass('front'); $(this).addClass('front'); }, function() { $(this).removeClass('front'); @@ -3539,6 +3542,8 @@ BookReader.prototype.addChapter = function(chapterTitle, pageNumber, pageIndex) shadow: false }) .hover( function() { + // remove hover effect from other markers then turn on just for this + $('.search,.chapter').removeClass('front'); $(this).addClass('front'); }, function() { $(this).removeClass('front');