fnRowSelected / fnRowDeselected broken
fnRowSelected / fnRowDeselected broken
grutz
Posts: 6Questions: 1Answers: 0
I upgraded to DT 1.9.0 and TT 2.0.2 recently and found that fnRowSelected and fnRowDeselected are not triggering correctly. When a row is first selected fnRowDeselected is called. If selected again fnRowSelected is called. Select a third time and fnRowSelected is called, never fnRowDeselected.
The oTableTools init code is:
[code]
"oTableTools": {
"sRowSelect": "multi",
"sSelectedClass": "row_selected",
"fnRowSelected": function ( node ) {
jQuery(node).find("input[type=checkbox]").attr("checked", true);
},
"fnRowDeselected": function ( node ) {
jQuery(node).find("input[type=checkbox]").attr("checked", false);
}
}
[/code]
This worked in prior versions of DT and TT.
The oTableTools init code is:
[code]
"oTableTools": {
"sRowSelect": "multi",
"sSelectedClass": "row_selected",
"fnRowSelected": function ( node ) {
jQuery(node).find("input[type=checkbox]").attr("checked", true);
},
"fnRowDeselected": function ( node ) {
jQuery(node).find("input[type=checkbox]").attr("checked", false);
}
}
[/code]
This worked in prior versions of DT and TT.
This discussion has been closed.
Replies