diff --git a/addons/pager/jquery.tablesorter.pager.js b/addons/pager/jquery.tablesorter.pager.js index 4c4202cc..66010eeb 100644 --- a/addons/pager/jquery.tablesorter.pager.js +++ b/addons/pager/jquery.tablesorter.pager.js @@ -52,7 +52,7 @@ // ], // [ "header1", "header2", ... "headerN" ] // optional // ] - ajaxProcessing: function( /* ajax */ ) { return [ 0, [], null ]; }, + ajaxProcessing: function(data) { return data; }, // output default: '{page}/{totalPages}' // possible variables: {size}, {page}, {totalPages}, {filteredPages}, {startRow}, diff --git a/docs/index.html b/docs/index.html index 170a38ff..351d0d66 100644 --- a/docs/index.html +++ b/docs/index.html @@ -4463,9 +4463,9 @@ $('table').trigger('search', false); Function - null + function (data) { return data; } - This function is required to return the ajax data obtained from your server into a useable format for tablesorter to apply to the table (v2.1, v2.17.3). + This function is required to return the ajax data obtained from your server into a useable format for tablesorter to apply to the table (v2.1, v2.30.8).

Note The pager widget equivalent option is within the widgetOptions and accessed via widgetOptions.pager_ajaxProcessing
diff --git a/js/widgets/widget-pager.js b/js/widgets/widget-pager.js index cd0c93fd..1e6604e8 100644 --- a/js/widgets/widget-pager.js +++ b/js/widgets/widget-pager.js @@ -91,7 +91,7 @@ // ], // [ "header1", "header2", ... "headerN" ] // optional // ] - pager_ajaxProcessing: function( /* ajax */ ) { return [ 0, [], null ]; }, + pager_ajaxProcessing: function( data ) { return data; }, // css class names of pager arrows pager_css: {