No longer a function?

No longer a function?

bombhausbombhaus Posts: 9Questions: 1Answers: 0

$.fn.dataTableExt.afnSortData['dc-additional-file'] = function(oSettings, iColumn) {
var aData = [];
$('td:eq('+iColumn+') a', oSettings.oApi._fnGetTrNodes(oSettings)).each( function () {
aData.push( this.text );
} );
return aData;
};

We have this function - It gives me an error now - Looking for direction on whether it's something deprecated, a missing js reference or what?

Thanks -

Answers

  • allanallan Posts: 61,759Questions: 1Answers: 10,111 Site admin

    _fnGetTrNodes was an internal function that I should never have published in an example. My apologies. That internal function was removed in DataTables 1.10 as it is no longer needed internally.

    The fix is to use the public API. The updates examples for live DOM sorting are available here: http://datatables.net/examples/plug-ins/dom_sort.html .

    Regards,
    Allan

This discussion has been closed.