From ade93ffc5ed1acdc9a9af880857481643115a784 Mon Sep 17 00:00:00 2001 From: Robert Hickman Date: Tue, 18 Jun 2013 15:19:09 -0600 Subject: [PATCH 1/2] Only disable the previous button if the navPrevNextWrap option is not set. --- src/viewer.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/viewer.js b/src/viewer.js index 624431e4..97b430de 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -346,10 +346,6 @@ $.Viewer = function( options ) { beginControlsAutoHide( _this ); } ); // initial fade out - if(this.navPrevNextWrap){ - this.previousButton.enable(); - } - }; $.extend( $.Viewer.prototype, $.EventHandler.prototype, $.ControlDock.prototype, { @@ -855,7 +851,9 @@ $.extend( $.Viewer.prototype, $.EventHandler.prototype, $.ControlDock.prototype, onBlur: onBlurHandler }); - this.previousButton.disable(); + if( !this.navPrevNextWrap ){ + this.previousButton.disable(); + } if( useGroup ){ this.paging = new $.ButtonGroup({ From 91e4edafd010301737b001b9aea682c20bf9700d Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Wed, 19 Jun 2013 10:14:49 -0700 Subject: [PATCH 2/2] Updated changelog for #135 --- changelog.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/changelog.txt b/changelog.txt index 0e713a28..2e4d94a3 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,8 @@ OPENSEADRAGON CHANGELOG 0.9.129: (In Progress) +* Fixed an error when using navPrevNextWrap on single images (#135) + 0.9.128: * The navigator is now off by default (#102)