mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 03:15:56 +00:00
drop option ENABLE_SEARCH_TOOLBAR, use some more callbacks in filterCR
This commit is contained in:
16
functions.js
16
functions.js
@@ -1223,6 +1223,14 @@ function qaddFilter() {
|
||||
return
|
||||
}
|
||||
|
||||
var form = document.forms['filter_add_form'];
|
||||
var reg_exp = form.reg_exp.value;
|
||||
|
||||
if (reg_exp == "") {
|
||||
alert("Can't add filter: nothing to match on.");
|
||||
return false;
|
||||
}
|
||||
|
||||
var query = Form.serialize("filter_add_form");
|
||||
|
||||
xmlhttp.open("GET", "backend.php?" + query, true);
|
||||
@@ -1251,6 +1259,14 @@ function qafAdd() {
|
||||
return
|
||||
}
|
||||
|
||||
var form = document.forms['feed_add_form'];
|
||||
var feed_url = form.feed_url.value;
|
||||
|
||||
if (feed_url == "") {
|
||||
alert("Can't subscribe: no feed URL given.");
|
||||
return false;
|
||||
}
|
||||
|
||||
notify("Adding feed...", true);
|
||||
|
||||
closeInfoBox();
|
||||
|
||||
Reference in New Issue
Block a user