?
avatar videoCodec
videoCodec
4 Dec 2017

Steps to reproduce the issue

for date picker pop-up, calendar.dateClicked no longer defined in javascript after Joomla 3.8.2 upgrade

Expected result

calendar.dateClicked is true or false after clicking on date in pop-up.

Actual result

ReferenceError: Calendar is not defined in Web Console

System information (as much as possible)

Joomla 3.8.2

Additional comments

calendar.js and calendar-setup.js no longer load on startup, and are replaced with calendar.min.js

avatar videoCodec videoCodec - open - 4 Dec 2017
avatar joomla-cms-bot joomla-cms-bot - labeled - 4 Dec 2017
avatar dgt41
dgt41 - comment - 4 Dec 2017

Please share the code you are using!

avatar videoCodec
videoCodec - comment - 4 Dec 2017

The date picker displays fine, but calendar.dateClicked is undefined.

echo JHTML::calendar($pandate, 'pandate', 'pandateId', '%a, %b %e, %Y', array('onChange' => "onCalendarClick4()",'class' => 'calendar-less' ) );

<script type="text/javascript"> Calendar.setup({ inputField : "pandateId", // ID of the input field ifFormat : "%a, %b %e, %Y", // the date format button : "calendarImg", // ID of the button }); function onCalendarClick() { if ( calendar.dateClicked == true ) /* do something */ }
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18978.
avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Dec 2017
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Dec 2017
Category JavaScript
avatar Quy
Quy - comment - 29 Dec 2017

@videoCodec Try cal.dateClicked.

avatar franz-wohlkoenig franz-wohlkoenig - change - 29 Dec 2017
Status Discussion Information Required
avatar Quy Quy - change - 29 Dec 2017
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2017-12-29 16:28:11
Closed_By Quy
avatar joomla-cms-bot joomla-cms-bot - change - 29 Dec 2017
Closed_By Quy joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 29 Dec 2017
avatar joomla-cms-bot
joomla-cms-bot - comment - 29 Dec 2017

Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/18978

avatar Quy
Quy - comment - 29 Dec 2017

This is a coding error by the user and not in the core.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18978.

avatar videoCodec
videoCodec - comment - 1 Jan 2018

@Quy cal.dateClicked is also undefined. So, I modified calendar.min.js (core hack) to keep the desired functionality my website had before the 3.8.2 update.

avatar chavab1
chavab1 - comment - 19 Jan 2021

I landed on here from this link https://issues.joomla.org/tracker/joomla-cms/18469 because I'm having the same problem. The link points to this issue but I don't see how it's referencing anything about the original problem.

I'm running version 3.9.10 with the default template and I'm still getting the same results. The calendar popup is partially hidden below the browser bar. I fixed it by adding the margin-top style declaration, but I was wondering if this is going to be addressed.

Thanx

avatar drmenzelit
drmenzelit - comment - 19 Jan 2021

@chavab1 this issue is closed. Can you please open a new issue and share code / screenshots with us?
You are using an oudated Joomla version, you should update to 3.9.24

avatar chmst chmst - change - 19 Jan 2021
Labels Added: Information Required
avatar chmst chmst - labeled - 19 Jan 2021
avatar chmst chmst - change - 19 Jan 2021
Labels Removed: Information Required
avatar chmst chmst - unlabeled - 19 Jan 2021
avatar chavab1
chavab1 - comment - 19 Jan 2021

@drmenzelit Sorry about that. I thought of that but first I wanted to see if I missed something. Because it says that it's closed but I can't find where it mentions the fix. So I didn't want to open a new issue if in fact it has been take care of, and I just missed it.

BTW: I just updated to 3.9.24 and I still have the same issue.

I'll go ahead and open the new issue.

Thanx

Add a Comment

Login with GitHub to post a comment