From c21b779292ecb4e0232ac5da905fa2f30b4a3b4f Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 30 Apr 2013 00:33:49 +0400 Subject: [PATCH] several minor tweeks... Signed-off-by: Alex A. Naanou --- ui/index.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ui/index.html b/ui/index.html index 31c05e5d..87399057 100755 --- a/ui/index.html +++ b/ui/index.html @@ -333,7 +333,7 @@ function getImageBefore(image, ribbon, visible_only){ // pre marked-only mode... //var images = $(ribbon).find('.image') if(visible_only){ - var images = $(ribbon).find('.image:visible') + var images = $(ribbon).find('.image').filter(':visible') } else { var images = $(ribbon).find('.image') } @@ -355,26 +355,30 @@ function getImageBefore(image, ribbon, visible_only){ function nextImage(){ return centerImage( focusImage( + // pre marked-only mode... //$('.current.image').next('.image'))) $('.current.image').next('.image:visible'))) } function prevImage(){ return centerImage( focusImage( + // pre marked-only mode... //$('.current.image').prev('.image'))) $('.current.image').prev('.image:visible'))) } function firstImage(){ return centerImage( focusImage( + // pre marked-only mode... //$('.current.image').closest('.ribbon').find('.image').first())) - $('.current.image').closest('.ribbon').find('.image:visible').first())) + $('.current.image').closest('.ribbon').find('.image').filter(':visible').first())) } function lastImage(){ return centerImage( focusImage( + // pre marked-only mode... //$('.current.image').closest('.ribbon').find('.image').last())) - $('.current.image').closest('.ribbon').find('.image:visible').last())) + $('.current.image').closest('.ribbon').find('.image').filter(':visible').last())) } // NOTE: if moving is 'next' these will chose the image after the current's order.