From 831408f0e88ee01e295ebf0b152d600c79e8a2f4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 28 Feb 2013 14:22:13 +0400 Subject: [PATCH] fix cdm checkbox not selecting entire cell --- classes/feeds.php | 2 +- js/functions.js | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) 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'); -- 2.39.5