From 5f8839193571a9582703e6a43df49f027ac5dcd0 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Fri, 15 Mar 2024 09:36:15 +0100 Subject: [PATCH 1/3] =?UTF-8?q?N=C2=B07122=20-=20Fix=20wrongfully=20merged?= =?UTF-8?q?=20JS=20inclusion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2.x/itop-portal-base/portal/templates/layout.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datamodels/2.x/itop-portal-base/portal/templates/layout.html.twig b/datamodels/2.x/itop-portal-base/portal/templates/layout.html.twig index 0646a2a1b..fce6ee50b 100644 --- a/datamodels/2.x/itop-portal-base/portal/templates/layout.html.twig +++ b/datamodels/2.x/itop-portal-base/portal/templates/layout.html.twig @@ -135,7 +135,7 @@ - + {# Selectize for sets #} From 7b5fa0a912c483dfeb46198800d7370120d4ae50 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Fri, 15 Mar 2024 11:05:08 +0100 Subject: [PATCH 2/3] =?UTF-8?q?N=C2=B07122=20-=20Fix=20wrongfully=20merged?= =?UTF-8?q?=20JS=20inclusion=20in=20b08b5297?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2.x/itop-portal-base/portal/templates/layout.html.twig | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/datamodels/2.x/itop-portal-base/portal/templates/layout.html.twig b/datamodels/2.x/itop-portal-base/portal/templates/layout.html.twig index fce6ee50b..4dbc37147 100644 --- a/datamodels/2.x/itop-portal-base/portal/templates/layout.html.twig +++ b/datamodels/2.x/itop-portal-base/portal/templates/layout.html.twig @@ -543,7 +543,12 @@ }); // Initialize confirmation message handler when a form with touched fields is closed - oBodyElem.portal_leave_handler({'message': '{{ 'Portal:Form:Close:Warning'|dict_s }}'}); + oBodyElem.leave_handler({ + 'message': '{{ 'Portal:Form:Close:Warning'|dict_s }}', + 'extra_events': { + 'body': ['hide.bs.modal'] + } + }); {% endblock %} }); From fa5d03fc6ee3c03c45ea3fe096dd7121eae1e5db Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Mon, 18 Mar 2024 18:15:39 +0100 Subject: [PATCH 3/3] =?UTF-8?q?N=C2=B06455=20Fix=20datepicker=20widget=20i?= =?UTF-8?q?con=20on=20button=20The=20buttonText=20is=20now=20escaped?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sources/Application/WebPage/iTopWebPage.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/Application/WebPage/iTopWebPage.php b/sources/Application/WebPage/iTopWebPage.php index 59e59d325..cf571fae7 100644 --- a/sources/Application/WebPage/iTopWebPage.php +++ b/sources/Application/WebPage/iTopWebPage.php @@ -301,7 +301,7 @@ class iTopWebPage extends NiceWebPage implements iTabbedPage // Date picker options $aPickerOptions = array( 'showOn' => 'button', - 'buttonText' => '', + 'buttonText' => '', // N°6455 class will be added after JQuery UI widget 'dateFormat' => AttributeDate::GetFormat()->ToDatePicker(), 'constrainInput' => false, 'changeMonth' => true, @@ -354,6 +354,7 @@ class iTopWebPage extends NiceWebPage implements iTabbedPage // Note: Trigger image is wrapped in a span so we can display it we want $(".date-pick").datepicker($sJSDatePickerOptions) .next("img").wrap(""); + $("button.ui-datepicker-trigger").addClass('fas fa-calendar-alt'); // Hack for the date and time picker addon issue on Chrome (see #1305) // The workaround is to instantiate the widget on demand