Skip to content

Commit

Permalink
Update src/datatables.Selectable.js
Browse files Browse the repository at this point in the history
  • Loading branch information
williamthiago committed Jan 10, 2013
1 parent 22fdb2e commit 44f7d2b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/datatables.Selectable.js
Expand Up @@ -229,11 +229,12 @@
this.oDTSettings.oApi._fnCallbackReg(this.oDTSettings, 'aoInitComplete',
function() {
var $cell = $(that.oDTSettings.nTHead).find('tr :nth-child(' + that.options.iColNumber + ')');
var $cells = $(that.oDTSettings.nTBody).find('td:nth-child(' + that.options.iColNumber + ')');
var $selectAll = $('<input type="checkbox" />');
that.$selectAll = $selectAll;

$selectAll.groupToggle({
groupParent: $(that.oDTSettings.nTBody),
groupParent: $cells,

onBeforeChange: function() {
that._massChange = true; // Set mass change flag to ignore multiple update events.
Expand Down Expand Up @@ -452,4 +453,4 @@
};


})(jQuery);
})(jQuery);

0 comments on commit 44f7d2b

Please sign in to comment.