From: Andrew Dolgov Date: Thu, 28 Feb 2013 10:22:13 +0000 (+0400) Subject: fix cdm checkbox not selecting entire cell X-Git-Tag: 1.7.1~18 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=831408f0e88ee01e295ebf0b152d600c79e8a2f4;p=tt-rss.git fix cdm checkbox not selecting entire cell --- diff --git a/classes/feeds.php b/classes/feeds.php index 886470e9..0f2bbf31 100644 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -521,7 +521,7 @@ class Feeds extends Handler_Protected { $reply['content'] .= "
"; $reply['content'] .= ""; $reply['content'] .= "$marked_pic"; diff --git a/js/functions.js b/js/functions.js index 8bdc229b..be12d257 100644 --- a/js/functions.js +++ b/js/functions.js @@ -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');