I have a request from all of my Doctors front office people. Can the little calendar on the left hand side of the page be changed to be like the calendar inside the appointment scheduler. They need to skip forward two or three months to find an opening in the calendar for a patient and have to click and wait click and wait. I know that there is a feature for finding open appointments but nobody likes it. They want to look at the calendar for that day. The visual is much better to the person doing the scheduling.
That is one of the drawbacks I feel about the Outlook style calendar. The users I support prefer the Original style calendar for the reasons you mentioned.
@Sherwin,
Can you explain what you want in more detail? Is this request basically that the office folks would like a way to skip directly to a particular month and/or possibly skip two or three months at a time, rather than having to click one month at a time?
This code makes it so that when you click on the month in the small calendar in the datePicker DIV, your are presented with a list of the current month and the next 12 months which you can click and there by go directly to a particular month.
@Brady,
Turns out I’m using a method that is only in php 5.3 and newer. Calendar changes are broken on the development demo because of it. Error in log as follows.
PHP Fatal error: Call to undefined method DateTime::getTimestamp() in /var/www/html/openemr/interface/main/calendar/modules/PostCalendar/pntemplates/default/views/monthSelector.php on line 13, referer: http://opensourceemr.com:2089/openemr/interface/main/main_info.php
In the patch I just released and on the 4.1.x development demo, it appears the feature to increment by month by clicking on the month in the pop-up calendar is not working, while it does work in the 4.2.x development demo. The only commit of yours I didn’t bring over to 4.1.x (the rel-410 branch) is the jquery upgrade; is the higher version of jquery needed for this feature.
To avoid confusion, here are the developer demo links:
Let’s try this again!
I switched from using the :hidden selector to determine visibility myself to using the .toggle method and letting jQuery worry about it.
The :hidden selector changed in 1.3.2 (the calendar uses 1.2.2) http://api.jquery.com/hidden-selector/
This is why it worked in the 4.2 version with the updated jQuery and didn’t work in the 4.1 with the old.
The toggle method I’m using now has been part of jQuery since 1.0, so it works for both old and new, and I’ve tested it with 1.2.2 this time.