]> git.wh0rd.org Git - tt-rss.git/commitdiff
use dijit.form.CheckBox in filter edit dialog
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 31 Aug 2012 11:26:11 +0000 (15:26 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 31 Aug 2012 11:26:11 +0000 (15:26 +0400)
classes/pref/filters.php
js/functions.js
tt-rss.css

index 11487c877acf07daf723674fe42c3835082a82ae..2ed46435858266bbd4107dceefde1e0785667fa8 100644 (file)
@@ -231,7 +231,7 @@ class Pref_Filters extends Handler_Protected {
 
                        $data = htmlspecialchars(json_encode($line));
 
-                       print "<li><input type='checkbox' onclick='toggleSelectListRow(this)'>".
+                       print "<li><input dojoType='dijit.form.CheckBox' type='checkbox' onclick='toggleSelectListRow2(this)'>".
                                "<span onclick=\"dijit.byId('filterEditDlg').editRule(this)\">".$this->getRuleName($line)."</span>".
                                "<input type='hidden' name='rule[]' value=\"$data\"/></li>";
                }
@@ -270,7 +270,7 @@ class Pref_Filters extends Handler_Protected {
                        $line["action_param_label"] = $line["action_param"];
                        $data = htmlspecialchars(json_encode($line));
 
-                       print "<li><input type='checkbox' onclick='toggleSelectListRow(this)'>".
+                       print "<li><input dojoType='dijit.form.CheckBox' type='checkbox' onclick='toggleSelectListRow2(this)'>".
                                "<span onclick=\"dijit.byId('filterEditDlg').editAction(this)\">".$this->getActionName($line)."</span>".
                                "<input type='hidden' name='action[]' value=\"$data\"/></li>";
                }
index 284b2cc563cd733e593348b3299b07873b74327d..a01ce3cad01abcb89cd06c369f7ff6d140efc90b 100644 (file)
@@ -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[]",
index 801a96ac946c14ddec2389e603efde912f192e3c..25b51e48ba12061d7efc3e3b22360820513af49f 100644 (file)
@@ -1441,4 +1441,9 @@ ul#filterDlg_Matches, ul#filterDlg_Actions {
 
 ul#filterDlg_Matches li, ul#filterDlg_Actions li {
        cursor : pointer;
+       padding : 0px 0px 0px 5px;
+}
+
+ul#filterDlg_Matches li div.dijitCheckBox, ul#filterDlg_Actions li div.dijitCheckBox {
+       margin-right : 5px;
 }