X-Git-Url: http://git.scottworley.com/picsort/blobdiff_plain/f27447751b7014d29341dede189d3ae5f7d21ca1..a05e21670fd3fd2d8e0de963a21ec871b6725f52:/picsorter.js?ds=sidebyside diff --git a/picsorter.js b/picsorter.js index d10631c..e0a05ff 100644 --- a/picsorter.js +++ b/picsorter.js @@ -51,6 +51,7 @@ function announce() { msg += "(" + picinfo[files[input_index]].deleted+ ")"; } say(msg); + return false; } function toggle_zoom() { @@ -60,6 +61,7 @@ function toggle_zoom() { zoom = "sm/"; } setpic(); + return false; } function move_by_filter(direction, filter) { @@ -89,9 +91,11 @@ function move(direction) { } function move_to_begenning() { move_by_filter(-1, function(i) { return i == 0; }); + return false; } function move_to_end() { move_by_filter(1, function(i) { return i == files.length - 1; }); + return false; } function move_to_nondeleted(direction) { move_by_filter(direction, function(i) { @@ -113,15 +117,17 @@ function mark_not_deleted() { delete picinfo[files[input_index]].deleted; save_picinfo(); say("Undeleted"); + return false; } function say_exposure() { if (!endsWith(files[input_index], ".NEF")) { say("Exposure adjustment not available"); - return; + return false; } var display_exposure = (exposure / 4) - 3.5; say((display_exposure >= 0 ? "+" : "") + display_exposure); + return false; } function change_exposure(amount) { @@ -146,6 +152,7 @@ function rotate() { } save_picinfo(); setpic(); + return false; } @@ -193,6 +200,7 @@ function show_commands() { }); commands.push(""); $("#shell_out").text(commands.join("\n")).show(); + return false; } function clean_picinfo() {