1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-16 01:45:56 +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:"), "");
if (caption == null) {
return false;
}
if (caption == "") {
alert(__("Can't create label: missing caption."));
return false;