updated demo url & removed ajax error url comparison; see #349

This commit is contained in:
Mottie 2013-10-03 06:32:49 -05:00
parent 88b5a33b34
commit 0fd5203515
2 changed files with 3 additions and 6 deletions

View File

@ -302,11 +302,8 @@
$.tablesorter.isProcessing(table, true); // show loading icon $.tablesorter.isProcessing(table, true); // show loading icon
} }
$doc.bind('ajaxError.pager', function(e, xhr, settings, exception) { $doc.bind('ajaxError.pager', function(e, xhr, settings, exception) {
//show the error message on the table renderAjax(null, table, p, xhr, exception);
if (url.match(settings.url)) { $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.url = url; // from the ajaxUrl option and modified by customAjaxUrl
p.ajaxObject.success = function(data) { p.ajaxObject.success = function(data) {

View File

@ -54,7 +54,7 @@
// the filterList to the url into an "fcol" array. // 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 // 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 // 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 // modify the url after all processing has been applied
customAjaxUrl: function(table, url) { customAjaxUrl: function(table, url) {