From 8ade79c8cb21b2bf52fbd8521d3d00a972e8cf4e Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Tue, 17 Mar 2015 23:28:02 -0700 Subject: [PATCH 1/1] Say if a picture is deleted --- picsorter.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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() { -- 2.44.1