mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 15:55:56 +00:00
fix cdm checkbox not selecting entire cell
This commit is contained in:
@@ -521,7 +521,7 @@ class Feeds extends Handler_Protected {
|
|||||||
$reply['content'] .= "<div>";
|
$reply['content'] .= "<div>";
|
||||||
|
|
||||||
$reply['content'] .= "<input dojoType=\"dijit.form.CheckBox\"
|
$reply['content'] .= "<input dojoType=\"dijit.form.CheckBox\"
|
||||||
type=\"checkbox\" onclick=\"toggleSelectRow2(this)\"
|
type=\"checkbox\" onclick=\"toggleSelectRow2(this, false, true)\"
|
||||||
id=\"RCHK-$id\">";
|
id=\"RCHK-$id\">";
|
||||||
|
|
||||||
$reply['content'] .= "$marked_pic";
|
$reply['content'] .= "$marked_pic";
|
||||||
|
|||||||
@@ -351,9 +351,13 @@ function toggleSelectListRow2(sender) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* this is for dijit Checkbox */
|
/* 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'))
|
if (sender.checked && !row.hasClassName('Selected'))
|
||||||
row.addClassName('Selected');
|
row.addClassName('Selected');
|
||||||
|
|||||||
Reference in New Issue
Block a user