mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-31 04:32:06 +08:00
Merge pull request #7629 from aignatov-bio/ai-sci-10768-fix-manage-tags-on-task-page
Fix manage tags on task page [SCI-10768]
This commit is contained in:
commit
4bc603fd80
2 changed files with 3 additions and 2 deletions
|
@ -148,7 +148,8 @@
|
|||
$('#experimentTable, .my-modules-protocols-index, #experiment-canvas')
|
||||
.on('click', '.edit-tags-link', function() {
|
||||
if (window.tagsModal) {
|
||||
window.tagsModal.open($(this).closest('.module-large').data('module-url'));
|
||||
const url = $(this).closest('.module-large').data('module-url') || $(this).attr('href');
|
||||
window.tagsModal.open(url);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="select-container">
|
||||
<div class="edit-button-container hidden">
|
||||
<a class="edit-tags-link" data-remote="true" href="<%= my_module_tags_edit_path(@my_module, format: :json) %>">
|
||||
<a class="edit-tags-link" data-remote="true" href="<%= my_module_path(my_module, format: :json) %>">
|
||||
<i class="sn-icon sn-icon-settings"></i>
|
||||
<span class="hidden-xs"><%= t("my_modules.details.manage_tags") %></span>
|
||||
</a>
|
||||
|
|
Loading…
Reference in a new issue