You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
506 B
JavaScript
16 lines
506 B
JavaScript
/**
|
|
* Read information from a column of checkboxes (input elements with type
|
|
* checkbox) and return an array to use as a basis for sorting.
|
|
* @name Checkbox data source
|
|
* @author <a href="http://sprymedia.co.uk">Allan Jardine</a>
|
|
*/
|
|
|
|
$.fn.dataTableExt.afnSortData['dom-checkbox'] = function ( oSettings, iColumn )
|
|
{
|
|
var aData = [];
|
|
$( 'td:eq('+iColumn+') input', oSettings.oApi._fnGetTrNodes(oSettings) ).each( function () {
|
|
aData.push( this.checked==true ? "1" : "0" );
|
|
} );
|
|
return aData;
|
|
};
|