]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix cdm checkbox not selecting entire cell
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 28 Feb 2013 10:22:13 +0000 (14:22 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 28 Feb 2013 10:22:13 +0000 (14:22 +0400)
classes/feeds.php
js/functions.js

index 886470e903876c4ac53373c7157844eb83edd997..0f2bbf31e9f296556da4e13bb9e65f86e6d28c9c 100644 (file)
@@ -521,7 +521,7 @@ class Feeds extends Handler_Protected {
                                        $reply['content'] .= "<div>";
 
                                        $reply['content'] .= "<input dojoType=\"dijit.form.CheckBox\"
-                                                       type=\"checkbox\" onclick=\"toggleSelectRow2(this)\"
+                                                       type=\"checkbox\" onclick=\"toggleSelectRow2(this, false, true)\"
                                                        id=\"RCHK-$id\">";
 
                                        $reply['content'] .= "$marked_pic";
index 8bdc229b2230159666571818a2fc8fe7fa64997f..be12d257aab85bc149e9e80826b76d18a1df8a2f 100644 (file)
@@ -351,9 +351,13 @@ function toggleSelectListRow2(sender) {
 }
 
 /* this is for dijit Checkbox */
-function toggleSelectRow2(sender, row) {
+function toggleSelectRow2(sender, row, is_cdm) {
 
-       if (!row) row = sender.domNode.parentNode.parentNode;
+       if (!row)
+               if (!is_cdm)
+                       row = sender.domNode.parentNode.parentNode;
+               else
+                       row = sender.domNode.parentNode.parentNode.parentNode; // oh ffs
 
        if (sender.checked && !row.hasClassName('Selected'))
                row.addClassName('Selected');