Page 1 of 1
LISE date picker triggering URL load
Posted: Tue Nov 16, 2021 1:27 pm
by johnboyuk1
Hi all
Im having problems with the date picker (selectDateTime)- in the LISE module. When I try and select a date on the calendar dialogue box it triggers a null link which actually kicks me back out to the CMSMS admin home screen. The links I see when hovering over a date are like this:
domain name.com/admin/#
Which then triggers a page load
Any idea why this is happening ?
Re: LISE date picker triggering URL load
Posted: Tue Nov 16, 2021 1:53 pm
by johnboyuk1
ok, I've actually tracked down whats causing the issue, but dont know why, and not sure where the bug lies, whether its the module or jquery?
If I change the 'date format' in the field settings from its default of dd-mm-yy to DD-MM-yy ... then I get the odd link behaviour
Problem is i need the format to be the day/month in words, not numbers
Re: LISE date picker triggering URL load
Posted: Tue Nov 16, 2021 3:21 pm
by DIGI3
The console reveals more, it looks like it's trying to use a function that was removed from jQueryUI some time ago (datepicker.log):
Code: Select all
Uncaught TypeError: $.datepicker.log is not a function
at Timepicker._parseTime (jquery-ui-timepicker-addon.js:310)
at Timepicker._addTimePicker (jquery-ui-timepicker-addon.js:288)
at i.$.datepicker._updateDatepicker (jquery-ui-timepicker-addon.js:1260)
at i.$.datepicker._selectDate (jquery-ui-timepicker-addon.js:1234)
at i._selectDay (jquery-ui-1.10.4.custom.min.js:6)
at HTMLTableCellElement.selectDay (jquery-ui-1.10.4.custom.min.js:6)
at HTMLTableCellElement.dispatch (jquery-1.11.1.min.js:3)
at HTMLTableCellElement.r.handle (jquery-1.11.1.min.js:3)
The only workaround I can think of for now is to choose a format that works, then reformat it when displayed with |date_format
You can and should file a bug report with the steps to recreate and the console log.
Re: LISE date picker triggering URL load
Posted: Tue Nov 16, 2021 3:34 pm
by johnboyuk1
ok thanks for checking that for me!