for date picker pop-up, calendar.dateClicked no longer defined in javascript after Joomla 3.8.2 upgrade
calendar.dateClicked is true or false after clicking on date in pop-up.
ReferenceError: Calendar is not defined in Web Console
Joomla 3.8.2
calendar.js and calendar-setup.js no longer load on startup, and are replaced with calendar.min.js
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 */ }Status | New | ⇒ | Discussion |
Category | ⇒ | JavaScript |
@videoCodec Try cal.dateClicked
.
Status | Discussion | ⇒ | Information Required |
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-12-29 16:28:11 |
Closed_By | ⇒ | Quy |
Closed_By | Quy | ⇒ | joomla-cms-bot |
Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/18978
This is a coding error by the user and not in the core.
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
Labels |
Added:
Information Required
|
Labels |
Removed:
Information Required
|
@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
Please share the code you are using!