From: Michael Ang Date: Tue, 9 Mar 2010 23:57:27 +0000 (+0000) Subject: Normalize whitespace X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=b77f91b5bdfe7a0a109117f6c247824516cef51b;p=bookreader.git Normalize whitespace --- diff --git a/BookReader/BookReader.js b/BookReader/BookReader.js index e581dda..158e053 100644 --- a/BookReader/BookReader.js +++ b/BookReader/BookReader.js @@ -613,7 +613,7 @@ BookReader.prototype.drawLeafsThumbnail = function() { // reset the bottom position based on thumbnails $('#BRpageview').height(bottomPos); - var pageViewBuffer = Math.floor(($('#BRcontainer').attr('scrollWidth') - maxRight) / 2) - 14; + var pageViewBuffer = Math.floor(($('#BRcontainer').attr('scrollWidth') - maxRight) / 2) - 14; var scrollTop = $('#BRcontainer').attr('scrollTop'); var scrollBottom = scrollTop + $('#BRcontainer').height(); @@ -677,7 +677,7 @@ BookReader.prototype.drawLeafsThumbnail = function() { div = document.createElement("div"); div.id = 'pagediv'+leaf; div.style.position = "absolute"; - div.className = "BRpagedivthumb"; + div.className = "BRpagedivthumb"; left += this.padding; $(div).css('top', leafTop + 'px'); @@ -1100,7 +1100,7 @@ BookReader.prototype.jumpToIndex = function(index, pageX, pageY) { this.flipFwdToIndex(index); } - } else if (3 == this.mode){ + } else if (3 == this.mode) { var viewWidth = $('#BRcontainer').attr('scrollWidth') - 20; // width minus buffer var i; var leafWidth = 0; @@ -1252,7 +1252,7 @@ BookReader.prototype.prepareThumbnailView = function() { this.resizePageView(); - this.displayedRows = []; + this.displayedRows = []; this.drawLeafsThumbnail(); // Bind mouse handlers