mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-02 21:20:08 +08:00
Activate assign items button in Results page [SCI-8419] (#5469)
Co-authored-by: Sboursen <dev.sboursen@gmail.com>
This commit is contained in:
parent
6b020f1316
commit
c7fcd0a52f
2 changed files with 4 additions and 3 deletions
|
@ -6,9 +6,10 @@
|
|||
$(document).on('click', '.record-info-link', function(e) {
|
||||
var that = $(this);
|
||||
let params = {};
|
||||
if ($('.my-modules-protocols-index').length) {
|
||||
params.my_module_id = $('.my-modules-protocols-index').data('task-id');
|
||||
if ($('.my-modules-protocols-index, #results').length) {
|
||||
params.my_module_id = $('.my-modules-protocols-index, #results').data('task-id');
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
method: 'GET',
|
||||
url: that.attr('href'),
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
|
||||
<div style="height: 15px;"></div>
|
||||
|
||||
<div id="results" data-module-id="<%= @my_module.id %>">
|
||||
<div id="results" data-module-id="<%= @my_module.id %>" data-task-id="<%= @my_module.id %>">
|
||||
<% @results.each do |result| %>
|
||||
<%= render partial: "result", locals: { result: result } %>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in a new issue