diff options
author | Andrew Dolgov <[email protected]> | 2009-01-18 10:27:40 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-01-18 10:27:40 +0100 |
commit | 4264f0b5ab8910fd963152a2636a47e61bd88707 (patch) | |
tree | 6e2499cc5c2b0fd1b406ed15c7aedb2ae5c6dc51 /prefs.js | |
parent | 0e164432a4cdd1582cd2c6620dfd3bf541e26cdf (diff) |
addLabel: properly handle input canceling
Diffstat (limited to 'prefs.js')
-rw-r--r-- | prefs.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -321,6 +321,10 @@ function addLabel() { var caption = prompt(__("Please enter label caption:"), ""); + if (caption == null) { + return false; + } + if (caption == "") { alert(__("Can't create label: missing caption.")); return false; |