make Title matching default for filters, change description for filter "both"

This commit is contained in:
Andrew Dolgov 2005-09-03 11:37:40 +01:00
parent e6155a0699
commit bdc00fe04d
2 changed files with 2 additions and 2 deletions

View file

@ -648,7 +648,7 @@
print "<table class=\"prefAddFeed\"><tr> print "<table class=\"prefAddFeed\"><tr>
<td><input id=\"fadd_regexp\"></td> <td><input id=\"fadd_regexp\"></td>
<td>"; <td>";
print_select("fadd_match", "", $filter_types); print_select("fadd_match", "Title", $filter_types);
print"</td><td colspan=\"4\" align=\"right\"> print"</td><td colspan=\"4\" align=\"right\">
<a class=\"button\" href=\"javascript:addFilter()\">Add filter</a></td></tr> <a class=\"button\" href=\"javascript:addFilter()\">Add filter</a></td></tr>

View file

@ -52,7 +52,7 @@ create table ttrss_filter_types (id integer primary key,
insert into ttrss_filter_types (id,name,description) values (1, 'title', 'Title'); insert into ttrss_filter_types (id,name,description) values (1, 'title', 'Title');
insert into ttrss_filter_types (id,name,description) values (2, 'content', 'Content'); insert into ttrss_filter_types (id,name,description) values (2, 'content', 'Content');
insert into ttrss_filter_types (id,name,description) values (3, 'both', insert into ttrss_filter_types (id,name,description) values (3, 'both',
'Title and Content'); 'Title or Content');
create table ttrss_filters (id serial primary key, create table ttrss_filters (id serial primary key,
filter_type integer not null references ttrss_filter_types(id), filter_type integer not null references ttrss_filter_types(id),