From a04a0d6b8f3c604f9bbd8e4a41d5230a206a9f67 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Thu, 13 Dec 2018 16:39:57 +0000 Subject: [PATCH] Fix - searchPane: Ensure order for panels is consistent --- features/searchPane/dataTables.searchPane.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/features/searchPane/dataTables.searchPane.js b/features/searchPane/dataTables.searchPane.js index 0e578fd..a8bfa10 100644 --- a/features/searchPane/dataTables.searchPane.js +++ b/features/searchPane/dataTables.searchPane.js @@ -85,6 +85,7 @@ rebuild: function() { var that = this; + this.c.container.empty(); this.s.dt .columns(this.c.columns) .eq(0) @@ -154,16 +155,6 @@ // Don't show the pane if there isn't enough variance in the data if (this._variance(bins) < this.c.threshold) { - this - .dom - .container - .children() - .map(function() { - if ($(this).data('column') == idx) { - return this; - } - }) - .remove(); return; }