mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-28 19:24:10 +08:00
Fix manage tags on task page [SCI-10768]
This commit is contained in:
parent
1c70e34d55
commit
9cb9618220
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