From 9f4457642d967b789ee5b84cbc4c37e4e173af7c Mon Sep 17 00:00:00 2001 From: aignatov-bio Date: Mon, 18 May 2020 16:01:26 +0200 Subject: [PATCH] Fix collapse animation for task sections --- app/assets/javascripts/my_modules.js | 1 + app/views/my_modules/protocols.html.erb | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/my_modules.js b/app/assets/javascripts/my_modules.js index b97c20fa9..a8112fc47 100644 --- a/app/assets/javascripts/my_modules.js +++ b/app/assets/javascripts/my_modules.js @@ -27,6 +27,7 @@ function initTaskCollapseState() { if (JSON.parse(collapsed)) { $('#' + taskSectionType).collapse('hide'); } + $(this).closest('.task-section').removeClass('hidden'); }); } diff --git a/app/views/my_modules/protocols.html.erb b/app/views/my_modules/protocols.html.erb index 183b5a27f..4f2ebe4f0 100644 --- a/app/views/my_modules/protocols.html.erb +++ b/app/views/my_modules/protocols.html.erb @@ -29,7 +29,7 @@ -
+ -