From: Andrew Dolgov Date: Sun, 18 Jan 2009 09:27:40 +0000 (+0100) Subject: addLabel: properly handle input canceling X-Git-Tag: 1.3.0~97 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=4264f0b5ab8910fd963152a2636a47e61bd88707;p=tt-rss.git addLabel: properly handle input canceling --- diff --git a/prefs.js b/prefs.js index d78e3b9d..12a95249 100644 --- a/prefs.js +++ b/prefs.js @@ -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;