summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-08-31 15:26:11 +0400
committerAndrew Dolgov <[email protected]>2012-08-31 15:26:11 +0400
commit04e41840fe2b6830b2c75124209b3b1bdcba60f4 (patch)
treedef75870ecaacc3c7a8bd09b2d1e346db9313c20 /js
parent69c6e94d35e5e94e5ce26f0f2b78c1708333f6d4 (diff)
use dijit.form.CheckBox in filter edit dialog
Diffstat (limited to 'js')
-rw-r--r--js/functions.js18
1 files changed, 12 insertions, 6 deletions
diff --git a/js/functions.js b/js/functions.js
index 284b2cc56..a01ce3cad 100644
--- a/js/functions.js
+++ b/js/functions.js
@@ -953,9 +953,12 @@ function createNewRuleElement(parentNode, replaceNode) {
try {
var li = dojo.create("li");
- dojo.create("input", { type: "checkbox",
- onclick: function() { toggleSelectListRow(this) },
- }, li);
+ var cb = dojo.create("input", { type: "checkbox" }, li);
+
+ new dijit.form.CheckBox({
+ onChange: function() {
+ toggleSelectListRow2(this) },
+ }, cb);
dojo.create("input", { type: "hidden",
name: "rule[]",
@@ -1000,9 +1003,12 @@ function createNewActionElement(parentNode, replaceNode) {
try {
var li = dojo.create("li");
- dojo.create("input", { type: "checkbox",
- onclick: function() { toggleSelectListRow(this) },
- }, li);
+ var cb = dojo.create("input", { type: "checkbox" }, li);
+
+ new dijit.form.CheckBox({
+ onChange: function() {
+ toggleSelectListRow2(this) },
+ }, cb);
dojo.create("input", { type: "hidden",
name: "action[]",