1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-19 22:51:28 +00:00

addLabel: properly handle input canceling

This commit is contained in:
Andrew Dolgov
2009-01-18 10:27:40 +01:00
parent 0e164432a4
commit 4264f0b5ab

View File

@@ -321,6 +321,10 @@ function addLabel() {
var caption = prompt(__("Please enter label caption:"), ""); var caption = prompt(__("Please enter label caption:"), "");
if (caption == null) {
return false;
}
if (caption == "") { if (caption == "") {
alert(__("Can't create label: missing caption.")); alert(__("Can't create label: missing caption."));
return false; return false;