mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-05 20:23:16 +08:00
Fixes wrong samples info modals being shown in samples datatable [SCI-858]
This commit is contained in:
parent
1b56e9d07c
commit
bc8db28746
2 changed files with 2 additions and 2 deletions
|
@ -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",
|
||||
|
|
|
@ -53,4 +53,4 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue