mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-06-04 06:56:58 +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
app
|
@ -6,9 +6,10 @@
|
||||||
$(document).on('click', '.record-info-link', function(e) {
|
$(document).on('click', '.record-info-link', function(e) {
|
||||||
var that = $(this);
|
var that = $(this);
|
||||||
let params = {};
|
let params = {};
|
||||||
if ($('.my-modules-protocols-index').length) {
|
if ($('.my-modules-protocols-index, #results').length) {
|
||||||
params.my_module_id = $('.my-modules-protocols-index').data('task-id');
|
params.my_module_id = $('.my-modules-protocols-index, #results').data('task-id');
|
||||||
}
|
}
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
url: that.attr('href'),
|
url: that.attr('href'),
|
||||||
|
|
|
@ -70,7 +70,7 @@
|
||||||
|
|
||||||
<div style="height: 15px;"></div>
|
<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| %>
|
<% @results.each do |result| %>
|
||||||
<%= render partial: "result", locals: { result: result } %>
|
<%= render partial: "result", locals: { result: result } %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Add table
Reference in a new issue