From 370b3a03edce7908b4a9589c01ffc1091eea5a8b Mon Sep 17 00:00:00 2001 From: Ivan Kljun Date: Mon, 8 Jan 2024 12:00:26 +0100 Subject: [PATCH 1/4] Remove blur event listener from legacy inline edit [SCI-9951] --- app/assets/javascripts/shared/inline_editing.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/assets/javascripts/shared/inline_editing.js b/app/assets/javascripts/shared/inline_editing.js index afd1c1fc7..657fe46a4 100644 --- a/app/assets/javascripts/shared/inline_editing.js +++ b/app/assets/javascripts/shared/inline_editing.js @@ -148,9 +148,6 @@ let inlineEditing = (function() { $(editBlocks).click(); } }) - .on('blur', `${editBlocks} textarea, ${editBlocks} input`, function(e) { - saveAllEditFields(); - }) .on('click', editBlocks, function(e) { // 'A' mean that, if we click on element we will not go in edit mode var container = $(this); From 5d4234a376a1ea41e73e24244d9b5109a9faa6a4 Mon Sep 17 00:00:00 2001 From: Gregor Lasnibat Date: Thu, 4 Jan 2024 13:38:13 +0100 Subject: [PATCH 2/4] (fix) Wide code sample on a shared task [SCI-9942] --- .../javascripts/shareable_links/handson_table_wraping.js | 2 +- app/views/layouts/shareable_links.html.erb | 6 +++--- app/views/shareable_links/my_module_protocol_show.html.erb | 2 +- app/views/shareable_links/my_modules/_protocol.html.erb | 2 +- .../shareable_links/my_modules/step_elements/_text.html.erb | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/assets/javascripts/shareable_links/handson_table_wraping.js b/app/assets/javascripts/shareable_links/handson_table_wraping.js index b94b018c9..084c6d1ae 100644 --- a/app/assets/javascripts/shareable_links/handson_table_wraping.js +++ b/app/assets/javascripts/shareable_links/handson_table_wraping.js @@ -10,7 +10,7 @@ if ($(table).parent().hasClass('table-wrapper')) return; $(table).wrap(` -
+
`); } } diff --git a/app/views/layouts/shareable_links.html.erb b/app/views/layouts/shareable_links.html.erb index 34e0dbc3c..cc00f3039 100644 --- a/app/views/layouts/shareable_links.html.erb +++ b/app/views/layouts/shareable_links.html.erb @@ -30,11 +30,11 @@