Skip to content

Commit

Permalink
Fix browsing through picutre, couldnt bo back to the end
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephane Caron authored and Stephane Caron committed Mar 28, 2011
1 parent 55c6b02 commit f843942
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/jquery.prettyPhoto.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit f843942

Please sign in to comment.