From d619c51213e7edbb3d1dfdf745a8d4214ba77bee Mon Sep 17 00:00:00 2001 From: hoangnt2 Date: Fri, 8 Dec 2023 16:39:52 +0700 Subject: [PATCH] fix(Table): Fix error of hiding attachment table content when clicking sort Signed-off-by: Nguyen Hoang --- .../includes/releases/spdx/edit.jspf | 2 +- .../includes/releases/spdx/view.jsp | 93 +++++++++++++------ .../html/utils/includes/attachmentsDetail.jsp | 6 ++ 3 files changed, 73 insertions(+), 28 deletions(-) diff --git a/frontend/sw360-portlet/src/main/resources/META-INF/resources/html/components/includes/releases/spdx/edit.jspf b/frontend/sw360-portlet/src/main/resources/META-INF/resources/html/components/includes/releases/spdx/edit.jspf index d47640cc50..54749c7440 100644 --- a/frontend/sw360-portlet/src/main/resources/META-INF/resources/html/components/includes/releases/spdx/edit.jspf +++ b/frontend/sw360-portlet/src/main/resources/META-INF/resources/html/components/includes/releases/spdx/edit.jspf @@ -146,7 +146,7 @@ $('#spdxFullMode').removeClass('btn-info'); $('.spdx-full').css('display', 'none'); }); - $('thead').on('click', function () { + $('.spdx-table thead').on('click', function () { if ($(this).next().css('display') == 'none') { $(this).next().css('display', ''); } else { diff --git a/frontend/sw360-portlet/src/main/resources/META-INF/resources/html/components/includes/releases/spdx/view.jsp b/frontend/sw360-portlet/src/main/resources/META-INF/resources/html/components/includes/releases/spdx/view.jsp index 7bf31b6c68..d3aef97ece 100644 --- a/frontend/sw360-portlet/src/main/resources/META-INF/resources/html/components/includes/releases/spdx/view.jsp +++ b/frontend/sw360-portlet/src/main/resources/META-INF/resources/html/components/includes/releases/spdx/view.jsp @@ -14,12 +14,20 @@ - + - + - +
6. Document Creation Information +
+ 6. Document Creation Information +
+
">
+
">
+
+
+
6.1 SPDX version
@@ -152,12 +160,20 @@ - + - + - +
7. Package Information +
+ 7. Package Information +
+
">
+
">
+
+
+