From ea3f7a7b805bec4cc534474587f0af941beb655e Mon Sep 17 00:00:00 2001 From: Mottie Date: Thu, 17 Apr 2014 09:46:30 -0500 Subject: [PATCH] Pager: remove oldAjaxSuccess function. Fixes #540 --- addons/pager/jquery.tablesorter.pager.js | 4 ---- js/widgets/widget-pager.js | 4 ---- 2 files changed, 8 deletions(-) diff --git a/addons/pager/jquery.tablesorter.pager.js b/addons/pager/jquery.tablesorter.pager.js index 0b5ec440..3e9ad7e9 100644 --- a/addons/pager/jquery.tablesorter.pager.js +++ b/addons/pager/jquery.tablesorter.pager.js @@ -396,9 +396,6 @@ } renderAjax(data, table, p); $doc.unbind('ajaxError.pager'); - if (typeof p.oldAjaxSuccess === 'function') { - p.oldAjaxSuccess(data); - } }; if (c.debug) { ts.log('ajax initialized', p.ajaxObject); @@ -655,7 +652,6 @@ if (c.debug) { ts.log('Pager initializing'); } - p.oldAjaxSuccess = p.oldAjaxSuccess || p.ajaxObject.success; c.appender = $this.appender; if (ts.filter && $.inArray('filter', c.widgets) >= 0) { // get any default filter settings (data-value attribute) fixes #388 diff --git a/js/widgets/widget-pager.js b/js/widgets/widget-pager.js index bd0e5e46..7f6f9ac2 100644 --- a/js/widgets/widget-pager.js +++ b/js/widgets/widget-pager.js @@ -150,7 +150,6 @@ tsp = ts.pager = { // page size selector p.$size = p.$container.find(s.pageSize); p.totalRows = c.$tbodies.eq(0).children().length; - p.oldAjaxSuccess = p.oldAjaxSuccess || wo.pager_ajaxObject.success; c.appender = tsp.appender; if (ts.filter && $.inArray('filter', c.widgets) >= 0) { // get any default filter settings (data-value attribute) fixes #388 @@ -579,9 +578,6 @@ tsp = ts.pager = { } tsp.renderAjax(data, table, c); $doc.unbind('ajaxError.pager'); - if (typeof p.oldAjaxSuccess === 'function') { - p.oldAjaxSuccess(data); - } }; if (c.debug) { ts.log('ajax initialized', wo.pager_ajaxObject);