1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-21 15:11:28 +00:00

new filter action: tag article

This commit is contained in:
Andrew Dolgov
2006-12-08 08:21:44 +01:00
parent de07b5eee9
commit 073ca0e663
4 changed files with 87 additions and 13 deletions

View File

@@ -1548,3 +1548,40 @@ function editFeedCats() {
function showFeedsWithErrors() {
displayDlg('feedUpdateErrors');
}
function filterDlgCheckAction(sender) {
try {
var action = sender[sender.selectedIndex].value;
var form = document.forms["filter_add_form"];
if (!form) {
form = document.forms["filter_edit_form"];
}
if (!form) {
debug("filterDlgCheckAction: can't find form!");
return;
}
var action_param = form.action_param;
if (!action_param) {
debug("filterDlgCheckAction: can't find action param!");
return;
}
// if selected action supports parameters, enable params field
if (action == 4) {
action_param.disabled = false;
} else {
action_param.disabled = true;
}
} catch (e) {
exception_error(e, "filterDlgCheckAction");
}
}