From: Scott Worley Date: Fri, 28 Feb 2014 07:22:20 +0000 (-0800) Subject: Don't start on a deleted picture. X-Git-Url: http://git.scottworley.com/picsort/commitdiff_plain/ca898dc71be66149a0189ceaf3cbd7828b530e55?ds=inline;hp=d1309d5a15f015c52ff48ea52b028f47ca7723e8 Don't start on a deleted picture. --- diff --git a/picsorter.js b/picsorter.js index e44c22c..abb590d 100644 --- a/picsorter.js +++ b/picsorter.js @@ -1,12 +1,14 @@ -var exposure = 20; -var input_index = 0; -var zoom = "sm/"; - if (!("picsorter_deleted" in localStorage)) { localStorage.picsorter_deleted = JSON.stringify({}); } var picsorter_deleted = JSON.parse(localStorage.picsorter_deleted); +var exposure = 20; +var zoom = "sm/"; +var input_index = -1; +move_to_nondeleted(1); + + function setpic() { $("#pic").attr("src", zoom + exposure + "/" + files[input_index]); }