label editor: bugfixes
This commit is contained in:
parent
5be2805bce
commit
8c96d4b1da
22
functions.js
22
functions.js
|
@ -1768,21 +1768,43 @@ function addLabelExample() {
|
|||
}
|
||||
|
||||
if (op == "kw_title") {
|
||||
if (p.value == "") {
|
||||
alert("This action requires a parameter.");
|
||||
return false;
|
||||
}
|
||||
tmp = tmp + "ttrss_entries.title like '%"+p.value+"%'";
|
||||
}
|
||||
|
||||
if (op == "kw_content") {
|
||||
if (p.value == "") {
|
||||
alert("This action requires a parameter.");
|
||||
return false;
|
||||
}
|
||||
|
||||
tmp = tmp + "ttrss_entries.content like '%"+p.value+"%'";
|
||||
}
|
||||
|
||||
if (op == "scoreE") {
|
||||
if (isNaN(parseInt(p.value))) {
|
||||
alert("This action expects numeric parameter.");
|
||||
return false;
|
||||
}
|
||||
tmp = tmp + "score = " + p.value;
|
||||
}
|
||||
|
||||
if (op == "scoreG") {
|
||||
if (isNaN(parseInt(p.value))) {
|
||||
alert("This action expects numeric parameter.");
|
||||
return false;
|
||||
}
|
||||
tmp = tmp + "score > " + p.value;
|
||||
}
|
||||
|
||||
if (op == "scoreL") {
|
||||
if (isNaN(parseInt(p.value))) {
|
||||
alert("This action expects numeric parameter.");
|
||||
return false;
|
||||
}
|
||||
tmp = tmp + "score < " + p.value;
|
||||
}
|
||||
|
||||
|
|
|
@ -5660,9 +5660,9 @@
|
|||
print "<option value=\"updated\">".__("Updated articles")."</option>";
|
||||
print "<option value=\"kw_title\">".__("Title contains")."</option>";
|
||||
print "<option value=\"kw_content\">".__("Content contains")."</option>";
|
||||
print "<option value=\"scoreE\">".__("Score is equals")."</option>";
|
||||
print "<option value=\"scoreG\">".__("Score is less than")."</option>";
|
||||
print "<option value=\"scoreL\">".__("Score is greater than")."</option>";
|
||||
print "<option value=\"scoreE\">".__("Score equals")."</option>";
|
||||
print "<option value=\"scoreG\">".__("Score is greater than")."</option>";
|
||||
print "<option value=\"scoreL\">".__("Score is less than")."</option>";
|
||||
print "<option value=\"newerH\">".__("Articles newer than X hours")."</option>";
|
||||
print "<option value=\"newerD\">".__("Articles newer than X days")."</option>";
|
||||
|
||||
|
|
Loading…
Reference in New Issue