Fixes wrong samples info modals being shown in samples datatable [SCI-858]

This commit is contained in:
Oleksii Kriuchykhin 2017-01-09 09:38:42 +01:00
parent 1b56e9d07c
commit bc8db28746
2 changed files with 2 additions and 2 deletions

View file

@ -89,7 +89,6 @@ function dataTableInit() {
fnDrawCallback: function() {
animateSpinner(this, false);
changeToViewMode();
sampleInfoListener();
updateButtons();
},
preDrawCallback: function() {
@ -325,6 +324,7 @@ function appendSamplesIdToForm(form) {
//Show sample info
function sampleInfoListener() {
$(".sample_info").on("click", function(e){
$("#modal-info-sample").remove();
var that = $(this);
$.ajax({
method: "GET",

View file

@ -53,4 +53,4 @@
</div>
</div>
</div>
</div>
</div>