summaryrefslogtreecommitdiff
path: root/js/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-02-28 14:22:13 +0400
committerAndrew Dolgov <[email protected]>2013-02-28 14:22:13 +0400
commit831408f0e88ee01e295ebf0b152d600c79e8a2f4 (patch)
treef92d7c4975457e56af8ccd4ff7e4a95e1eb078f8 /js/functions.js
parentce1cdfb6e0fca2aab8d3c26a8c1159623e437288 (diff)
fix cdm checkbox not selecting entire cell
Diffstat (limited to 'js/functions.js')
-rw-r--r--js/functions.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/js/functions.js b/js/functions.js
index 8bdc229b2..be12d257a 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');