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