show any ajax request errors to the user in the table

This commit is contained in:
Campbell Allen 2013-07-02 15:42:17 +01:00
parent 96a8efb4dd
commit a9d7c01a67

View File

@ -295,7 +295,8 @@
$.tablesorter.isProcessing(table, true); // show loading icon
}
$doc.bind('ajaxError.pager', function(e, xhr, settings, exception) {
if (url.match(settings.url)) {
//show the error message on the table
if (url === settings.url) {
renderAjax(null, table, c, xhr, exception);
$doc.unbind('ajaxError.pager');
}