mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-11 17:36:13 +08:00
fix samples info popup error
This commit is contained in:
parent
1b56e9d07c
commit
6f7c08fa63
1 changed files with 6 additions and 2 deletions
|
@ -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();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue