From e588b95b0c19ecacac1c90807f83836f8274a1e8 Mon Sep 17 00:00:00 2001 From: Michael Ang Date: Thu, 9 Jul 2009 22:07:12 +0000 Subject: [PATCH] Hide mode and autoplay buttons if 2up is not available. See https://bugs.edge.launchpad.net/gnubook/+bug/394525 --- GnuBook/GnuBook.js | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) 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 = "