X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=BookReaderIA%2Fdatanode%2FBookReaderJSIA.php;h=d3ce664532b6e7843c7297bd892488b3ea73b03c;hb=b658c2c0f4cc5618ac7c88a364121240d69b21d2;hp=b88a10f15f8834e7e24fdc2c90d861accd6b2a0d;hpb=17b8fa07e0e4de593f8d9963d36c78220dc17a3c;p=bookreader.git diff --git a/BookReaderIA/datanode/BookReaderJSIA.php b/BookReaderIA/datanode/BookReaderJSIA.php index b88a10f..d3ce664 100644 --- a/BookReaderIA/datanode/BookReaderJSIA.php +++ b/BookReaderIA/datanode/BookReaderJSIA.php @@ -330,7 +330,7 @@ br.getEmbedURL = function(viewParams) { //________ // Returns the embed code HTML fragment suitable for copy and paste br.getEmbedCode = function() { - return ""; + return ""; } // getOpenLibraryRecord @@ -370,7 +370,7 @@ br.buildInfoDiv = function(jInfoDiv) { // $$$ cover looks weird before it loads jInfoDiv.find('.BRfloatCover').append([ - '' + escapedTitle + ''].join('') + '
' + escapedTitle + '
'].join('') ); jInfoDiv.find('.BRfloatMeta').append([ @@ -385,8 +385,7 @@ br.buildInfoDiv = function(jInfoDiv) { '
  • Plain Text|
  • ', '
  • DAISY|
  • ', '
  • ePub|
  • ', - '
  • Send to Kindle|
  • ', - '
  • More...
  • ', + '
  • Send to Kindle
  • ', '', '

    More information on ' + domain + '

    '].join('\n')); @@ -402,6 +401,8 @@ br.buildInfoDiv = function(jInfoDiv) { } jInfoDiv.find('.BRfloatTitle a').attr({'href': this.bookUrl, 'alt': this.bookTitle}).text(this.bookTitle); + var bookPath = (window.location + '').replace('#','%23'); + jInfoDiv.find('a.problem').attr('href','http://openlibrary.org/contact?path=' + bookPath); } @@ -519,17 +520,7 @@ if (typeof(brConfig) != 'undefined') { br.reduce = brConfig['reduce']; } } else if (brConfig['mode'] == 2) { - br.mode = 2; - - + br.mode = 2; } } // brConfig @@ -545,7 +536,7 @@ OLAuth.prototype.init = function() { htmlStr += '

    Please wait...

    '; this.showPopup("#ddd", "#000", htmlStr); - $.ajax({url:this.authUrl, dataType:'jsonp', jsonpCallback:'olAuth.initCallback'}); + $.ajax({url:this.authUrl + '?rand='+Math.random(), dataType:'jsonp', jsonpCallback:'olAuth.initCallback'}); } OLAuth.prototype.showPopup = function(bgColor, textColor, msg) { @@ -609,7 +600,7 @@ OLAuth.prototype.startPolling = function () { var self = this; this.poller=setInterval(function(){ if (!self.olConnect) { - self.showPopup("#f00", "#fff", 'Cound not connect to Open Library for authentication. Please check to see if you are still connected to the Internet, and then reload this web page.'); + self.showPopup("#f00", "#fff", 'The BookReader cannot reach Open Library. This might mean that you are offline or that Open Library is down. Please check your Internet connection or try again later.'); clearInterval(self.poller); self.ttsPoller = null; } else {