From f843942ad07f89af8edb23602753f6caa392d8a6 Mon Sep 17 00:00:00 2001 From: Stephane Caron Date: Mon, 28 Mar 2011 14:34:47 -0400 Subject: [PATCH] Fix browsing through picutre, couldnt bo back to the end --- js/jquery.prettyPhoto.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/jquery.prettyPhoto.js b/js/jquery.prettyPhoto.js index ddefafb..a2d553e 100644 --- a/js/jquery.prettyPhoto.js +++ b/js/jquery.prettyPhoto.js @@ -327,8 +327,7 @@ if(direction == 'previous') { set_position--; if (set_position < 0){ - set_position = 0; - return; + set_position = $(pp_images).size()-1; }; }else if(direction == 'next'){ set_position++;