Fix glitchiness clicking through from thumbnail view. Remove thumbnail highlight.
authorMichael Ang <mang@archive.org>
Thu, 21 Oct 2010 09:50:41 +0000 (09:50 +0000)
committerMichael Ang <mang@archive.org>
Thu, 21 Oct 2010 09:50:41 +0000 (09:50 +0000)
BookReader/BookReader.css
BookReader/BookReader.js

index a130afd..db93727 100644 (file)
@@ -88,10 +88,12 @@ a {
 }
 
 /* Must come after .BRpagedivthumb rules in order to override them */
+/*
 .BRpagedivthumb_highlight {
     background-color: #9A9B9D;
     overflow:hidden;
 }
+*/
 
 .BRpagediv2up {
     background-color: rgb(234, 226, 205);
index e7edc5e..c56666c 100644 (file)
@@ -657,10 +657,8 @@ BookReader.prototype.drawLeafsThumbnail = function( seekIndex ) {
                     self.firstIndex = $(this).data('leaf');
                     self.switchMode(self.constMode1up);
                     event.preventDefault();
-                });
-                
-                // $$$ we don't actually go to this URL (click is handled in handler above)
-                link.href = '#page/' + (this.getPageNum(leaf)) +'/mode/1up' ;
+                    event.stopPropagation();
+                });                
                 $(div).append(link);
                 
                 $('#BRpageview').append(div);