summaryrefslogtreecommitdiff
path: root/js/prefs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-08-31 12:38:45 +0400
committerAndrew Dolgov <[email protected]>2012-08-31 12:38:45 +0400
commitec630524407882c27a7a8dceee8dc3eaafa0ebb4 (patch)
tree1b9d514c98550ca6f6e3052cad3d3702dc55f5e0 /js/prefs.js
parentc2ee5846fa86ed6feac821a21803cce713573758 (diff)
implement select all/none in filterEditDlg
Diffstat (limited to 'js/prefs.js')
-rw-r--r--js/prefs.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/js/prefs.js b/js/prefs.js
index 1fbbc55a5..72d253a95 100644
--- a/js/prefs.js
+++ b/js/prefs.js
@@ -136,6 +136,26 @@ function editFilter(id) {
id: "filterEditDlg",
title: __("Edit Filter"),
style: "width: 600px",
+ selectRules: function(select) {
+ $$("#filterDlg_Matches input[type=checkbox]").each(function(e) {
+ e.checked = select;
+ if (select)
+ e.parentNode.addClassName("Selected");
+ else
+ e.parentNode.removeClassName("Selected");
+ });
+ },
+ selectActions: function(select) {
+ $$("#filterDlg_Actions input[type=checkbox]").each(function(e) {
+ e.checked = select;
+
+ if (select)
+ e.parentNode.addClassName("Selected");
+ else
+ e.parentNode.removeClassName("Selected");
+
+ });
+ },
editRule: function(e) {
var li = e.parentNode;
var rule = li.getElementsByTagName("INPUT")[1].value;