diff --git a/galleryscript.js b/galleryscript.js index 0be6d68..acb3039 100644 --- a/galleryscript.js +++ b/galleryscript.js @@ -976,18 +976,34 @@ function showimage(i) { // Main function to show a single image if (i>imagelist.length-1 || i<0) { return; } thumblist(i,i); - showbigimage(i); - preload(i); - subfoldersmalllist(); - currentimage=i; - setProgress(i); + var dirStr=$('#imagecontainer').data('ID')(imagelist.length-1)) { currentimage=0; } showimage(currentimage); } - if (direction=='up') { - flipfullscreen(); - } + if (direction=='up') { flipfullscreen(); } + if (direction=='down') { usersetupflip(); } } }); }