Octopoos / SEBLOD

Build high-end websites with SEBLOD®, a CCK for Joomla!

Home Page:https://www.seblod.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Calendar picker (hour) not working with Seblod 4.1.1

webmasterpaca opened this issue · 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

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

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 !

Hi guys,
Has that bug been reported in Joomla ?