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