SEBLOD icon indicating copy to clipboard operation
SEBLOD copied to clipboard

Calendar picker (hour) not working with Seblod 4.1.1

Open webmasterpaca opened this issue 2 years ago • 3 comments

Hi, I'm using Jform Calendar in my form and I can't select times with calendar picker. The current time remains displayed. I just updated Joomla 3 to 4.4 and Seblod to 4.1.1. Under Joomla 3 it worked well. Thank you for your feedback

webmasterpaca avatar Nov 08 '23 15:11 webmasterpaca

Hi,

It's not a problem with the SEBLOD JForm Calendar Field plugin but with the native Joomla! calendar javascript code: On hour or minute select change, the code sends the new time for the input field to be changed but to do this, it tries to get the "seconds" select element value...which is not here anymore, and so it raises a javascript error and the input field is not updated.

2 ways to fix this while waiting for a fix to be done :

  1. Edit your SEBLOD JForm Calendar field and set the week numbers to be displayed. This will make the Joomla! javascript code add an extra empty element where the "seconds" one was supposed to be and the error will be gone
  2. Hack (ugly I know) the Joomla calendar javascript code file located in /media/system/js/fields/ with the one attached (For Joomla! 4.4.0).

calendar.js.zip

Regards, Olivier

olivier-nolbert avatar Nov 11 '23 15:11 olivier-nolbert

Hi Olivier, Thank you for your answer, I just displayed the numbers for the week, it works. I'm using this solution while waiting for this bug to be fixed in Joomla. Thank you for your help !

webmasterpaca avatar Nov 13 '23 08:11 webmasterpaca

Hi guys, Has that bug been reported in Joomla ?

joomleb avatar Nov 13 '23 12:11 joomleb