summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/tt-rss.js b/tt-rss.js
index f3f496b18..82a52e942 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -535,9 +535,14 @@ function qafAdd() {
if (link.value.length == 0) {
alert("Error: No feed URL given.");
+ } else if (link.value.match("http://") == null &&
+ link.value.match("https://") == null) {
+ alert("Error: Invalid feed URL.");
} else {
notify("Adding feed...");
-
+
+ closeInfoBox();
+
var cat = document.getElementById("qafCat");
var cat_id = "";