diff options
-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; |