Shape 5

Joomla Templates => Corporate Response - Club => : jvigil48 September 06, 2017, 10:34:11 AM



: Calendar.js and Calendar-setup.js file conflicts
: jvigil48 September 06, 2017, 10:34:11 AM
We are trying to implement a project management using ProjectKnife project management framework and we have been experiencing issues with calendar picker which is integral to ProjectKnife project management framework. Ideally the the calendar picker should present a popup calendar modal window when clicked on the calendar image as shown in the attached Image 1 but nothing happens. Upon investigation, we learned that there was a conflict between calendar.js calls of Corporate Response Template as well as calendar.js calls of ProjectKnife framework. We have used Mootools plugin to suppress/disable the Calendar.js calls. That had fixed the calendar picker issue but broke other functionality such as filters what we have used. I am little skeptical in using Mootools as I am not sure what else gets broken as we start plugging in more functionality. To begin with we have not used calendar picker anywhere in our application until we applied ProjectKnife project management framework. Could you please educate and guide us on how and where the Corporate Response template is making calls to the Calendar.js file?

FYI... Here are the files what we have disabled using Mootools under media/system/js directory.

1. calendar.js
2. calendar-setup.js

Thank you
Jerry


: Re: Calendar.js and Calendar-setup.js file conflicts
: mikek September 07, 2017, 05:47:41 AM
Hello,

Our templates do not come with any calendar scripts and nothing called calendar.js; there may be a default Joomla script calling this or some calls from the default Jquery library. I believe there is a calendar.js coming from Joomla's media folder, but that is coming from Joomla and not something the template controls. I would not suggest implementing a mootools script on your site, they often conflict with Jquery. Joomla moved to strictly Jquery scripts several years ago to avoid this.