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:
@@ -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 = "";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user