mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
more minor changes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
c7e509abef
commit
0c4c25fa0b
@ -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...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user