From 6f7c08fa63193890280e73f7757e6b336c507d80 Mon Sep 17 00:00:00 2001 From: Mojca Lorber Date: Fri, 6 Jan 2017 17:31:17 +0100 Subject: [PATCH] fix samples info popup error --- app/assets/javascripts/samples/sample_datatable.js.erb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/samples/sample_datatable.js.erb b/app/assets/javascripts/samples/sample_datatable.js.erb index b73c975b3..058693a33 100644 --- a/app/assets/javascripts/samples/sample_datatable.js.erb +++ b/app/assets/javascripts/samples/sample_datatable.js.erb @@ -89,7 +89,6 @@ function dataTableInit() { fnDrawCallback: function() { animateSpinner(this, false); changeToViewMode(); - sampleInfoListener(); updateButtons(); }, preDrawCallback: function() { @@ -145,7 +144,6 @@ function dataTableInit() { table.on('mousedown', function() { $('#samples-columns-dropdown').removeClass('open'); }); - sampleInfoListener(); } }); @@ -215,6 +213,11 @@ function dataTableInit() { // Handle table draw event table.on('draw', function() { updateDataTableSelectAllCtrl(table); + sampleInfoListener(); + }); + + table.on('column-reorder', function() { + sampleInfoListener(); }); return table; @@ -1028,6 +1031,7 @@ function changeToEditMode() { li.removeClass('col-invisible'); column.visible(true); } + sampleInfoListener(); }); }