fix samples info popup error

This commit is contained in:
Mojca Lorber 2017-01-06 17:31:17 +01:00
parent 1b56e9d07c
commit 6f7c08fa63

View file

@ -89,7 +89,6 @@ function dataTableInit() {
fnDrawCallback: function() { fnDrawCallback: function() {
animateSpinner(this, false); animateSpinner(this, false);
changeToViewMode(); changeToViewMode();
sampleInfoListener();
updateButtons(); updateButtons();
}, },
preDrawCallback: function() { preDrawCallback: function() {
@ -145,7 +144,6 @@ function dataTableInit() {
table.on('mousedown', function() { table.on('mousedown', function() {
$('#samples-columns-dropdown').removeClass('open'); $('#samples-columns-dropdown').removeClass('open');
}); });
sampleInfoListener();
} }
}); });
@ -215,6 +213,11 @@ function dataTableInit() {
// Handle table draw event // Handle table draw event
table.on('draw', function() { table.on('draw', function() {
updateDataTableSelectAllCtrl(table); updateDataTableSelectAllCtrl(table);
sampleInfoListener();
});
table.on('column-reorder', function() {
sampleInfoListener();
}); });
return table; return table;
@ -1028,6 +1031,7 @@ function changeToEditMode() {
li.removeClass('col-invisible'); li.removeClass('col-invisible');
column.visible(true); column.visible(true);
} }
sampleInfoListener();
}); });
} }