X-Git-Url: http://git.rot13.org/?p=bookreader.git;a=blobdiff_plain;f=BookReader%2FBookReader.js;h=c4e99137d7a47b626092f4118a98979558c66ae3;hp=e24b7a25024b6db4d7c1390b5ab7375c78000029;hb=b4722481d39c8fcea4cbb03c089d954a9760e551;hpb=e7e20efc5522e17cbcd759667a764ed8b2bf48d7 diff --git a/BookReader/BookReader.js b/BookReader/BookReader.js index e24b7a2..c4e9913 100644 --- a/BookReader/BookReader.js +++ b/BookReader/BookReader.js @@ -1353,8 +1353,6 @@ BookReader.prototype.switchMode = function(mode) { // this.twoPage.autofit = null; // Take zoom level from other mode this.twoPageCalculateReductionFactors(); this.reduce = this.quantizeReduce(this.reduce, this.twoPage.reductionFactors); - $('button.thumb').show(); - $('button.twopg').hide(); this.prepareTwoPageView(); this.twoPageCenterView(0.5, 0.5); // $$$ TODO preserve center } @@ -3608,21 +3606,24 @@ BookReader.prototype.addChapterFromEntry = function(tocEntryObject) { BookReader.prototype.initToolbar = function(mode, ui) { // $$$mang should be contained within the BookReader div instead of body - var readIcon = '' + + var readIcon = ''; if (!navigator.userAgent.match(/mobile/i)) { readIcon = ""; } - + $("body").append( "
" + "" /* XXXmang integrate search */ + "
" // XXXmang icons incorrect or handlers wrong + + "" + + "" + "" + "" + readIcon - + "" + //+ "" + "
" + "" + "Back to" + this.bookTitle + "" @@ -3641,6 +3642,8 @@ BookReader.prototype.initToolbar = function(mode, ui) { */ ); + $('#BRtoolbar .pause').hide(); + this.updateToolbarZoom(this.reduce); // Pretty format if (ui == "embed" || ui == "touch") { @@ -3667,7 +3670,7 @@ BookReader.prototype.initToolbar = function(mode, ui) { '.embed': 'Embed BookReader', '.link': 'Link to this book (and page)', '.bookmark': 'Bookmark this page', - '.read': 'Allow BookReader to read this aloud', + '.read': 'Read this book aloud', '.full': 'Show fullscreen', '.book_left': 'Flip left', '.book_right': 'Flip right',