addLabel: properly handle input canceling

This commit is contained in:
Andrew Dolgov 2009-01-18 10:27:40 +01:00
parent 0e164432a4
commit 4264f0b5ab
1 changed files with 4 additions and 0 deletions

View File

@ -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;