Pager: Change default ajaxProcessing function. See #1580

This commit is contained in:
Rob Garrison 2018-08-24 07:42:28 -05:00
parent f0ad41091a
commit 5df2bcaaa7
3 changed files with 4 additions and 4 deletions

View File

@ -52,7 +52,7 @@
// ], // ],
// [ "header1", "header2", ... "headerN" ] // optional // [ "header1", "header2", ... "headerN" ] // optional
// ] // ]
ajaxProcessing: function( /* ajax */ ) { return [ 0, [], null ]; }, ajaxProcessing: function(data) { return data; },
// output default: '{page}/{totalPages}' // output default: '{page}/{totalPages}'
// possible variables: {size}, {page}, {totalPages}, {filteredPages}, {startRow}, // possible variables: {size}, {page}, {totalPages}, {filteredPages}, {startRow},

View File

@ -4463,9 +4463,9 @@ $('table').trigger('search', false);</pre></div>
<tr id="pager-ajaxprocessing"> <tr id="pager-ajaxprocessing">
<td><a href="#" class="permalink">ajaxProcessing</a></td> <td><a href="#" class="permalink">ajaxProcessing</a></td>
<td>Function</td> <td>Function</td>
<td>null</td> <td>function (data) { return data; }</td>
<td> <td>
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, <span class="version updated">v2.17.3</span>). 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, <span class="version updated">v2.30.8</span>).
<div class="collapsible"> <div class="collapsible">
<br> <br>
<span class="label label-info">Note</span> The pager widget equivalent option is within the <code>widgetOptions</code> and accessed via <code>widgetOptions.pager_ajaxProcessing</code><br> <span class="label label-info">Note</span> The pager widget equivalent option is within the <code>widgetOptions</code> and accessed via <code>widgetOptions.pager_ajaxProcessing</code><br>

View File

@ -91,7 +91,7 @@
// ], // ],
// [ "header1", "header2", ... "headerN" ] // optional // [ "header1", "header2", ... "headerN" ] // optional
// ] // ]
pager_ajaxProcessing: function( /* ajax */ ) { return [ 0, [], null ]; }, pager_ajaxProcessing: function( data ) { return data; },
// css class names of pager arrows // css class names of pager arrows
pager_css: { pager_css: {