mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-07 07:26:20 +08:00
Merge pull request #588 from mlorb/ml_sci_191
Add information how many samples are selected [SCI-191]
This commit is contained in:
commit
4c85ac7bf5
1 changed files with 6 additions and 0 deletions
|
@ -107,6 +107,9 @@ function dataTableInit() {
|
||||||
animateSpinner(this, false);
|
animateSpinner(this, false);
|
||||||
changeToViewMode();
|
changeToViewMode();
|
||||||
updateButtons();
|
updateButtons();
|
||||||
|
// Show number of selected samples info
|
||||||
|
$('#samples_info').append('<span id="selected_info"></span>');
|
||||||
|
$('#selected_info').html(' ('+rowsSelected.length+' entries selected)');
|
||||||
},
|
},
|
||||||
preDrawCallback: function() {
|
preDrawCallback: function() {
|
||||||
animateSpinner(this);
|
animateSpinner(this);
|
||||||
|
@ -218,6 +221,9 @@ function dataTableInit() {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|
||||||
updateButtons();
|
updateButtons();
|
||||||
|
|
||||||
|
// Update number of selected samples info
|
||||||
|
$('#selected_info').html(' ('+ rowsSelected.length +' entries selected)');
|
||||||
});
|
});
|
||||||
|
|
||||||
// Handle click on "Select all" control
|
// Handle click on "Select all" control
|
||||||
|
|
Loading…
Reference in a new issue