Merge pull request #588 from mlorb/ml_sci_191

Add information how many samples are selected [SCI-191]
This commit is contained in:
mlorb 2017-05-05 15:24:16 +02:00 committed by GitHub
commit 4c85ac7bf5

View file

@ -107,6 +107,9 @@ function dataTableInit() {
animateSpinner(this, false);
changeToViewMode();
updateButtons();
// Show number of selected samples info
$('#samples_info').append('<span id="selected_info"></span>');
$('#selected_info').html(' ('+rowsSelected.length+' entries selected)');
},
preDrawCallback: function() {
animateSpinner(this);
@ -218,6 +221,9 @@ function dataTableInit() {
e.stopPropagation();
updateButtons();
// Update number of selected samples info
$('#selected_info').html(' ('+ rowsSelected.length +' entries selected)');
});
// Handle click on "Select all" control