addLabel: properly handle input canceling

master
Andrew Dolgov 16 years ago
parent 0e164432a4
commit 4264f0b5ab

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

Loading…
Cancel
Save