diff options
author | Andrew Dolgov <[email protected]> | 2006-05-18 09:29:17 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-05-18 09:29:17 +0100 |
commit | 2371c520c734769f8150ddf5101052bd0973337e (patch) | |
tree | 7938b23c0cf8d2de0ac8bf91d25e61c23ec3514e /tt-rss.js | |
parent | 0ceded7a4663fc05d5f4871b01ac66f9c6a7380e (diff) |
disable some submit-type buttons when required data is not given
Diffstat (limited to 'tt-rss.js')
-rw-r--r-- | tt-rss.js | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 = ""; |