more minor changes...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-04-26 05:33:38 +04:00
parent c7e509abef
commit 0c4c25fa0b

View File

@ -189,6 +189,10 @@ function shiftImageDownNewRibbon(image){
// XXX // XXX
function focusImage(image){
image.closest('.viewer').find('.current.image').removeClass('current')
return image.addClass('current')
}
@ -196,8 +200,7 @@ function shiftImageDownNewRibbon(image){
// NOTE: this is on purpose done relative... // NOTE: this is on purpose done relative...
function clickHandler(evt){ function clickHandler(evt){
var img = $(evt.target).closest('.image') var img = $(evt.target).closest('.image')
img.closest('.viewer').find('.current.image').removeClass('current') focusImage(img)
img.addClass('current')
} }
// setup... // setup...