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
472 B
JavaScript
16 lines
472 B
JavaScript
/**
|
|
* Read information from a column of select (drop down) menus and return an
|
|
* array to use as a basis for sorting.
|
|
* @name Select menu data source
|
|
* @author <a href="http://sprymedia.co.uk">Allan Jardine</a>
|
|
*/
|
|
|
|
$.fn.dataTableExt.afnSortData['dom-select'] = function ( oSettings, iColumn )
|
|
{
|
|
var aData = [];
|
|
$( 'td:eq('+iColumn+') select', oSettings.oApi._fnGetTrNodes(oSettings) ).each( function () {
|
|
aData.push( $(this).val() );
|
|
} );
|
|
return aData;
|
|
};
|