Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calendar picker (hour) not working with Seblod 4.1.1 #778

Open
webmasterpaca opened this issue Nov 8, 2023 · 3 comments
Open

Calendar picker (hour) not working with Seblod 4.1.1 #778

webmasterpaca opened this issue Nov 8, 2023 · 3 comments

Comments

@webmasterpaca
Copy link

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

@olivier-nolbert
Copy link
Contributor

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

@webmasterpaca
Copy link
Author

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 !

@joomleb
Copy link

joomleb commented Nov 13, 2023

Hi guys,
Has that bug been reported in Joomla ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants