function say(message) {
$("#message").text(message).removeClass("fade");
- setTimeout(function() { $("#message").addClass("fade"); }, 1);
+ setTimeout(function() { $("#message").addClass("fade"); }, 100);
}
function announce() {
say(input_index + " " + (picinfo[files[input_index]].name || ""));
Mousetrap.bind('!', show_commands);
Mousetrap.bind('esc', function() { $("#name").hide(); $("#shell_out").hide(); });
+function clean_picinfo() {
+ files_index = {};
+ $.each(files, function(i, f) {
+ files_index[f] = true;
+ });
+ for (f in picinfo) {
+ if (!files_index[f]) {
+ delete picinfo[f];
+ }
+ }
+}
+
function undelete_all() {
for (f in picinfo) {
delete picinfo[f].deleted;