Use empty string instead of null to unset display: block that is added to image eleme...
authorMichael Ang <mang@archive.org>
Fri, 4 Feb 2011 20:04:52 +0000 (20:04 +0000)
committerMichael Ang <mang@archive.org>
Fri, 4 Feb 2011 20:04:52 +0000 (20:04 +0000)
BookReader/BookReader.js

index 7bfbbc9..f2a02a0 100644 (file)
@@ -2213,8 +2213,8 @@ BookReader.prototype.flipLeftToRight = function(newIndexL, newIndexR) {
             $(self.prefetchedImgs[newIndexL]).css('zIndex', 2);
 
             //jquery adds display:block to the element style, which interferes with our print css
-            $(self.prefetchedImgs[newIndexL]).css('display', null);
-            $(self.prefetchedImgs[newIndexR]).css('display', null);
+            $(self.prefetchedImgs[newIndexL]).css('display', '');
+            $(self.prefetchedImgs[newIndexR]).css('display', '');
             
             $(self.leafEdgeR).css({
                 // Moves the right leaf edge
@@ -2365,8 +2365,8 @@ BookReader.prototype.flipRightToLeft = function(newIndexL, newIndexR) {
             $(self.prefetchedImgs[newIndexR]).css('zIndex', 2);
 
             //jquery adds display:block to the element style, which interferes with our print css
-            $(self.prefetchedImgs[newIndexL]).css('display', null);
-            $(self.prefetchedImgs[newIndexR]).css('display', null);
+            $(self.prefetchedImgs[newIndexL]).css('display', '');
+            $(self.prefetchedImgs[newIndexR]).css('display', '');
             
             $(self.leafEdgeL).css({
                 width: newLeafEdgeWidthL+'px',