ColumnSelector: Don't clear container on updateAll. Fixes #1406

This commit is contained in:
Rob Garrison 2017-05-25 05:10:33 -05:00
parent e3227a7af0
commit d095c63008

View File

@ -1,4 +1,4 @@
/* Widget: columnSelector (responsive table widget) - updated 12/15/2016 (v2.28.2) *//* /* Widget: columnSelector (responsive table widget) - updated 5/25/2017 (v2.28.12) *//*
* Requires tablesorter v2.8+ and jQuery 1.7+ * Requires tablesorter v2.8+ and jQuery 1.7+
* by Justin Hallett & Rob Garrison * by Justin Hallett & Rob Garrison
*/ */
@ -541,8 +541,8 @@
}, },
remove: function(table, c, wo, refreshing) { remove: function(table, c, wo, refreshing) {
var csel = c.selector; var csel = c.selector;
if ( csel) { csel.$container.empty(); }
if ( refreshing || !csel ) { return; } if ( refreshing || !csel ) { return; }
if ( csel ) { csel.$container.empty(); }
if ( csel.$popup ) { csel.$popup.empty(); } if ( csel.$popup ) { csel.$popup.empty(); }
csel.$style.remove(); csel.$style.remove();
csel.$breakpoints.remove(); csel.$breakpoints.remove();