From: Scott Worley Date: Wed, 18 Mar 2015 06:28:02 +0000 (-0700) Subject: Say if a picture is deleted X-Git-Url: http://git.scottworley.com/picsort/commitdiff_plain/8ade79c8cb21b2bf52fbd8521d3d00a972e8cf4e?ds=inline Say if a picture is deleted --- diff --git a/picsorter.js b/picsorter.js index 5eee6c1..3aee5d2 100644 --- a/picsorter.js +++ b/picsorter.js @@ -55,7 +55,11 @@ function say(message) { setTimeout(function() { $("#message").addClass("fade"); }, 100); } function announce() { - say(input_index + " " + (picinfo[files[input_index]].name || "")); + var msg = input_index + " " + (picinfo[files[input_index]].name || ""); + if ("deleted" in picinfo[files[input_index]]) { + msg += "(" + picinfo[files[input_index]].deleted+ ")"; + } + say(msg); } function toggle_zoom() {