1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 15:55:55 +00:00

disable some submit-type buttons when required data is not given

This commit is contained in:
Andrew Dolgov
2006-05-18 09:29:17 +01:00
parent 0ceded7a46
commit 2371c520c7
4 changed files with 53 additions and 21 deletions

View File

@@ -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 = "";