From ba687b5e46ee61b08e2193ccb8ee4a7aacc7e1ca Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 3 May 2013 04:30:39 +0400 Subject: [PATCH] fixed bug with image shifting... Signed-off-by: Alex A. Naanou --- ui/ImageGrid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ImageGrid.js b/ui/ImageGrid.js index dc105bb3..873e4a47 100755 --- a/ui/ImageGrid.js +++ b/ui/ImageGrid.js @@ -487,7 +487,7 @@ function _shiftImageTo(image, direction, moving, force_create_ribbon, mode){ var b = moving == 'prev' ? 'nextAll' : 'prevAll' var target = image[a]('.image' + mode).first() - target = target.length == 0 ? image[b]() : target + target = target.length == 0 ? image[b]().first() : target // XXX should this be in here or coupled later via an event??? flashIndicator(direction)