From: Michael Ang Date: Thu, 9 Jul 2009 22:07:12 +0000 (+0000) Subject: Hide mode and autoplay buttons if 2up is not available. See https://bugs.edge.launch... X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=e588b95b0c19ecacac1c90807f83836f8274a1e8;p=bookreader.git Hide mode and autoplay buttons if 2up is not available. See https://bugs.edge.launchpad.net/gnubook/+bug/394525 --- diff --git a/GnuBook/GnuBook.js b/GnuBook/GnuBook.js index f566895..fbfe1e3 100644 --- a/GnuBook/GnuBook.js +++ b/GnuBook/GnuBook.js @@ -1908,20 +1908,14 @@ GnuBook.prototype.jumpIndexForRightEdgePageX = function(pageX) { } GnuBook.prototype.initToolbar = function(mode, ui) { - var modeButtons = ''; - - // $$$ workaround for not displaying short books in 2up - if (this.canSwitchToMode(this.constMode1up) && this.canSwitchToMode(this.constMode2up)) { - modeButtons = "