From 1b91228cdcfe4fa95fd455e6bd7d96a6ff1165b1 Mon Sep 17 00:00:00 2001 From: Mottie Date: Thu, 5 Feb 2015 14:35:27 -0600 Subject: [PATCH] Formatter: detach tbody before processing --- js/widgets/widget-formatter.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/widgets/widget-formatter.js b/js/widgets/widget-formatter.js index de8da09a..31bbc312 100644 --- a/js/widgets/widget-formatter.js +++ b/js/widgets/widget-formatter.js @@ -20,10 +20,11 @@ setup : function( c ) { // do nothing for empty tables if ( $.isEmptyObject( c.cache ) ) { return; } - var tbodyIndex, rowIndex, rows, len, column, formatter, + var $tbody, tbodyIndex, rowIndex, rows, len, column, formatter, wo = c.widgetOptions, data = { config: c, wo: wo }; for ( tbodyIndex = 0; tbodyIndex < c.$tbodies.length; tbodyIndex++ ){ + $tbody = ts.processTbody( c.table, c.$tbodies.eq( tbodyIndex ), true ); // detach tbody rows = c.cache[ tbodyIndex ]; len = rows.normalized.length; for ( rowIndex = 0; rowIndex < len; rowIndex++ ) { @@ -40,6 +41,7 @@ } } } + ts.processTbody( c.table, $tbody, false); // restore tbody } } };