X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;ds=sidebyside;f=BookReader%2FBookReader.js;h=aec078597fd0b75589772989852e604313d44544;hb=c1b85a342a93b75938408f201b1ea2786e4f1517;hp=e24a33526950e46659ab532b9294b1391b76a6aa;hpb=7e8fbae6fc6f0c25c4b6ab185a2c6a0a98323e21;p=bookreader.git diff --git a/BookReader/BookReader.js b/BookReader/BookReader.js index e24a335..aec0785 100644 --- a/BookReader/BookReader.js +++ b/BookReader/BookReader.js @@ -3367,23 +3367,22 @@ BookReader.prototype.initNavbar = function() { //______________________________________________________________________________ // Initialize the navigation bar when embedded BookReader.prototype.initEmbedNavbar = function() { - // XXX we don't want embed for this link -- just the link to this book - var thisLink = this.getEmbedURL(this.paramsFromCurrent()); + var thisLink = (window.location + '').replace('?ui=embed',''); // IA-specific $('#BookReader').append( '
' + "" - //+ '' + + '' + '' + '' + "" + "" - + "" + this.bookTitle + "" // XXX escape + + "" + '
' ); + $('#BRembedreturn a').text(this.bookTitle); } - BookReader.prototype.updateNavPageNum = function(index) { var pageNum = this.getPageNum(index); var pageStr; @@ -3881,6 +3880,16 @@ BookReader.prototype.bindNavigationHandlers = function() { return false; }); + jIcons.filter('.full').bind('click', function() { + if (self.ui == 'embed') { + // $$$ bit of a hack, IA-specific + var url = (window.location + '').replace("?ui=embed",""); + window.open(url); + } + + // Not implemented + }); + $('.BRnavCntl').click( function(){ if ($('#BRnavCntlBtm').hasClass('BRdn')) {