From 9cb9618220c647da0a4d3ba96fe97ffdfca72524 Mon Sep 17 00:00:00 2001 From: Anton Date: Wed, 5 Jun 2024 11:33:52 +0200 Subject: [PATCH] Fix manage tags on task page [SCI-10768] --- app/assets/javascripts/my_modules/tags.js | 3 ++- app/views/my_modules/_tags.html.erb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/my_modules/tags.js b/app/assets/javascripts/my_modules/tags.js index c922cbeab..2187ae738 100644 --- a/app/assets/javascripts/my_modules/tags.js +++ b/app/assets/javascripts/my_modules/tags.js @@ -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); } }); } diff --git a/app/views/my_modules/_tags.html.erb b/app/views/my_modules/_tags.html.erb index 2cc3bc244..962a036cd 100644 --- a/app/views/my_modules/_tags.html.erb +++ b/app/views/my_modules/_tags.html.erb @@ -1,6 +1,6 @@