]> git.scottworley.com Git - picsort/commitdiff
Say if a picture is deleted
authorScott Worley <scottworley@scottworley.com>
Wed, 18 Mar 2015 06:28:02 +0000 (23:28 -0700)
committerScott Worley <scottworley@scottworley.com>
Wed, 18 Mar 2015 06:28:02 +0000 (23:28 -0700)
picsorter.js

index 5eee6c18b634a5b322d5ec75a49a265267ab1d38..3aee5d2e2af3c9432e508474d993bfd884ce2022 100644 (file)
@@ -55,7 +55,11 @@ function say(message) {
   setTimeout(function() { $("#message").addClass("fade"); }, 100);
 }
 function announce() {
   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() {
 }
 
 function toggle_zoom() {