From ad9497a638f2a4698707e8f6996a52a7b4225be4 Mon Sep 17 00:00:00 2001 From: Mojca Lorber Date: Thu, 4 May 2017 16:30:29 +0200 Subject: [PATCH] add information how many samples are selected --- app/assets/javascripts/samples/sample_datatable.js.erb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/assets/javascripts/samples/sample_datatable.js.erb b/app/assets/javascripts/samples/sample_datatable.js.erb index 3e52355b8..c0bbff776 100644 --- a/app/assets/javascripts/samples/sample_datatable.js.erb +++ b/app/assets/javascripts/samples/sample_datatable.js.erb @@ -107,6 +107,9 @@ function dataTableInit() { animateSpinner(this, false); changeToViewMode(); updateButtons(); + // Show number of selected samples info + $('#samples_info').append(''); + $('#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