From: Scott Worley Date: Tue, 23 Dec 2014 05:51:19 +0000 (-0800) Subject: Leaving the name field empty cancels X-Git-Url: http://git.scottworley.com/picsort/commitdiff_plain/7b24c22c6a79cff42759f93e091f6e553ffeade6 Leaving the name field empty cancels --- diff --git a/picsorter.js b/picsorter.js index 4f726fb..be0371a 100644 --- a/picsorter.js +++ b/picsorter.js @@ -155,10 +155,12 @@ function rotate() { function set_name(name) { - picinfo[files[input_index]].name = name; - save_picinfo(); - say("Named " + name); - last_name = name; + if (name) { + picinfo[files[input_index]].name = name; + save_picinfo(); + say("Named " + name); + last_name = name; + } } function set_name_from_form() {