summaryrefslogtreecommitdiff
path: root/prefs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-12-08 08:21:44 +0100
committerAndrew Dolgov <[email protected]>2006-12-08 08:21:44 +0100
commit073ca0e663781bb90e01c56b058b7c0801f19bcb (patch)
tree7062c3e6da971edc6257184dcd5fb8c12534656e /prefs.js
parentde07b5eee928a3d78fede1e3b7ef2d80b5199d42 (diff)
new filter action: tag article
Diffstat (limited to 'prefs.js')
-rw-r--r--prefs.js37
1 files changed, 37 insertions, 0 deletions
diff --git a/prefs.js b/prefs.js
index 6b772b1cd..37b738358 100644
--- a/prefs.js
+++ b/prefs.js
@@ -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");
+ }
+
+}