mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-10-08 13:44:18 +00:00
updated demo url & removed ajax error url comparison; see #349
This commit is contained in:
parent
88b5a33b34
commit
0fd5203515
@ -302,11 +302,8 @@
|
||||
$.tablesorter.isProcessing(table, true); // show loading icon
|
||||
}
|
||||
$doc.bind('ajaxError.pager', function(e, xhr, settings, exception) {
|
||||
//show the error message on the table
|
||||
if (url.match(settings.url)) {
|
||||
renderAjax(null, table, p, xhr, exception);
|
||||
$doc.unbind('ajaxError.pager');
|
||||
}
|
||||
renderAjax(null, table, p, xhr, exception);
|
||||
$doc.unbind('ajaxError.pager');
|
||||
});
|
||||
p.ajaxObject.url = url; // from the ajaxUrl option and modified by customAjaxUrl
|
||||
p.ajaxObject.success = function(data) {
|
||||
|
@ -54,7 +54,7 @@
|
||||
// the filterList to the url into an "fcol" array.
|
||||
// So a sortList = [[2,0],[3,0]] becomes "&col[2]=0&col[3]=0" in the url
|
||||
// and a filterList = [[2,Blue],[3,13]] becomes "&fcol[2]=Blue&fcol[3]=13" in the url
|
||||
ajaxUrl : 'assets/City{page}.json#{filterList:filter}&{sortList:column}',
|
||||
ajaxUrl : 'assets/City{page}.json?{filterList:filter}&{sortList:column}',
|
||||
|
||||
// modify the url after all processing has been applied
|
||||
customAjaxUrl: function(table, url) {
|
||||
|
Loading…
Reference in New Issue
Block a user