From f28b928b266d76ff73939f34ee6feed46a78f686 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 4 Sep 2012 04:19:43 +0400 Subject: [PATCH] fixed a bug... Signed-off-by: Alex A. Naanou --- ui/gallery-prototype.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ui/gallery-prototype.js b/ui/gallery-prototype.js index 342e702f..40ce989d 100755 --- a/ui/gallery-prototype.js +++ b/ui/gallery-prototype.js @@ -1349,6 +1349,7 @@ function loadJSON(data, position, set_order){ // handle click for images... function handleImageClick(){ + var ribbons = $(this).parents('.ribbon').siblings('.ribbon') // set classes... $('.current').removeClass('current') $(this) @@ -1359,13 +1360,15 @@ function handleImageClick(){ centerSquare() centerIndicator() alignRibbons() - // update this and other ribbons... + // update this ribbon... var w = getViewerWidthImages() updateRibbonImages($(this), w) - var ribbons = $(this).parents('.ribbon').siblings('.ribbon') + // update other ribbons... var id = $(this).attr('id') for(var i=0; i