From 703ee53c47db8eafaf712f294376df289ab1a135 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Wed, 4 Dec 2013 17:10:59 +0000 Subject: [PATCH] Dev fix: API - destroy() was giving a JS error on scrolling tables - http://datatables.net/forums/discussion/18584 --- .datatables-commit-sync | 2 +- media/js/jquery.dataTables.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.datatables-commit-sync b/.datatables-commit-sync index 8b3e0d9e..62fb5ae1 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -f4f879d9b2cf0676c45924995e8b2a3fe97ad637 +80a708c3e8522972ecc088d2cb2b14616849d6a8 diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 988c1b41..545503c5 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -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