mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-18 11:52:11 +01:00
Dev fix: API - destroy() was giving a JS error on scrolling tables
- http://datatables.net/forums/discussion/18584
This commit is contained in:
parent
c8a69545e0
commit
703ee53c47
@ -1 +1 @@
|
||||
f4f879d9b2cf0676c45924995e8b2a3fe97ad637
|
||||
80a708c3e8522972ecc088d2cb2b14616849d6a8
|
||||
|
4
media/js/jquery.dataTables.js
vendored
4
media/js/jquery.dataTables.js
vendored
@ -8435,12 +8435,12 @@
|
||||
// When scrolling we had to break the table up - restore it
|
||||
if ( table != thead.parentNode ) {
|
||||
jqTable.children('thead').remove();
|
||||
jqTable( thead );
|
||||
jqTable.append( thead );
|
||||
}
|
||||
|
||||
if ( tfoot && table != tfoot.parentNode ) {
|
||||
jqTable.children('tfoot').remove();
|
||||
jqTable( tfoot );
|
||||
jqTable.append( tfoot );
|
||||
}
|
||||
|
||||
// Remove the DataTables generated nodes, events and classes
|
||||
|
Loading…
x
Reference in New Issue
Block a user