mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
added customAjaxUrl example
This commit is contained in:
parent
2134d6dcd0
commit
5cc4ea204e
@ -55,6 +55,14 @@
|
||||
// and a filterList = [[2,Blue],[3,13]] becomes "&fcol[2]=Blue&fcol[3]=13" in the url
|
||||
ajaxUrl : 'assets/City{page}.json',
|
||||
|
||||
// modify the url after all processing has been applied
|
||||
customAjaxUrl: function(table, url) {
|
||||
// trigger my custom event
|
||||
$(table).trigger('changingUrl');
|
||||
// send the server the current page
|
||||
return url += '¤tUrl=' + window.location.href;
|
||||
},
|
||||
|
||||
// process ajax so that the following information is returned:
|
||||
// [ total_rows (number), rows (array of arrays), headers (array; optional) ]
|
||||
// example:
|
||||
|
Loading…
Reference in New Issue
Block a user