implement select all/none in filterEditDlg
This commit is contained in:
parent
c2ee5846fa
commit
ec63052440
|
@ -1105,6 +1105,26 @@ function quickAddFilter() {
|
||||||
id: "filterEditDlg",
|
id: "filterEditDlg",
|
||||||
title: __("Create Filter"),
|
title: __("Create Filter"),
|
||||||
style: "width: 600px",
|
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) {
|
editRule: function(e) {
|
||||||
var li = e.parentNode;
|
var li = e.parentNode;
|
||||||
var rule = li.getElementsByTagName("INPUT")[1].value;
|
var rule = li.getElementsByTagName("INPUT")[1].value;
|
||||||
|
|
20
js/prefs.js
20
js/prefs.js
|
@ -136,6 +136,26 @@ function editFilter(id) {
|
||||||
id: "filterEditDlg",
|
id: "filterEditDlg",
|
||||||
title: __("Edit Filter"),
|
title: __("Edit Filter"),
|
||||||
style: "width: 600px",
|
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) {
|
editRule: function(e) {
|
||||||
var li = e.parentNode;
|
var li = e.parentNode;
|
||||||
var rule = li.getElementsByTagName("INPUT")[1].value;
|
var rule = li.getElementsByTagName("INPUT")[1].value;
|
||||||
|
|
Loading…
Reference in New Issue