From f4b9a9a5feca0167c07046433dc9d5cc5ff8c38c Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Mon, 18 Mar 2024 18:15:39 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B06455=20Fix=20datepicker=20widget=20icon?= =?UTF-8?q?=20on=20button=20The=20buttonText=20is=20now=20escaped?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit fa5d03fc6ee3c03c45ea3fe096dd7121eae1e5db) --- 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 2f68b2621..4b5fd3951 100644 --- a/sources/application/WebPage/iTopWebPage.php +++ b/sources/application/WebPage/iTopWebPage.php @@ -285,7 +285,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, @@ -338,6 +338,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