1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-20 16:21:28 +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

@@ -282,6 +282,9 @@ function addFeed() {
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...");