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:
4
prefs.js
4
prefs.js
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user