mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Core & pager: use detach instead of empty on tbody rows
This commit is contained in:
parent
acefd269f9
commit
9c0017d44e
@ -289,7 +289,7 @@
|
||||
exception === 'timeout' ? 'Time out error' :
|
||||
exception === 'abort' ? 'Ajax Request aborted' :
|
||||
'Uncaught error: ' + xhr.statusText + ' [' + xhr.status + ']' );
|
||||
c.$tbodies.eq(0).empty();
|
||||
c.$tbodies.eq(0).detach();
|
||||
p.totalRows = 0;
|
||||
} else {
|
||||
// process ajax object
|
||||
@ -311,7 +311,7 @@
|
||||
if (d instanceof jQuery) {
|
||||
if (p.processAjaxOnInit) {
|
||||
// append jQuery object
|
||||
c.$tbodies.eq(0).empty().append(d);
|
||||
c.$tbodies.eq(0).detach().append(d);
|
||||
}
|
||||
} else if (l) {
|
||||
// build table from array
|
||||
|
@ -1136,7 +1136,7 @@
|
||||
};
|
||||
|
||||
ts.clearTableBody = function(table) {
|
||||
$(table)[0].config.$tbodies.empty();
|
||||
$(table)[0].config.$tbodies.detach();
|
||||
};
|
||||
|
||||
ts.bindEvents = function(table, $headers, core){
|
||||
|
@ -486,7 +486,7 @@ tsp = ts.pager = {
|
||||
ts.log('Ajax Error', xhr, exception);
|
||||
}
|
||||
ts.showError(table, exception.message + ' (' + xhr.status + ')');
|
||||
c.$tbodies.eq(0).empty();
|
||||
c.$tbodies.eq(0).detach();
|
||||
p.totalRows = 0;
|
||||
} else {
|
||||
// process ajax object
|
||||
@ -508,7 +508,7 @@ tsp = ts.pager = {
|
||||
if (d instanceof jQuery) {
|
||||
if (wo.pager_processAjaxOnInit) {
|
||||
// append jQuery object
|
||||
c.$tbodies.eq(0).empty().append(d);
|
||||
c.$tbodies.eq(0).detach().append(d);
|
||||
}
|
||||
} else if (l) {
|
||||
// build table from array
|
||||
|
Loading…
Reference in New Issue
Block a user