]> git.wh0rd.org - tt-rss.git/blobdiff - tt-rss.js
disable some submit-type buttons when required data is not given
[tt-rss.git] / tt-rss.js
index f3f496b185c24c888ac27c4db13cf4ee0bb1b1f7..82a52e9424eebd7f4e4f8b2d0da71fc59d7a3935 100644 (file)
--- 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 = "";