]> git.scottworley.com Git - picsort/blobdiff - picsorter.js
Say if a picture is deleted
[picsort] / picsorter.js
index 5eee6c18b634a5b322d5ec75a49a265267ab1d38..3aee5d2e2af3c9432e508474d993bfd884ce2022 100644 (file)
@@ -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() {