Hi, firstly big tnx for very very great plugin😉
I've set forms, everthing works with glance, but here are some questions about calendar picker:
1)how to set minDate=today?
i mean that user couldn't choose date, that is earlier than today. in calendar2.js I see
2)about languages - I have joomfish installed and I want to translate calendar picker.I made 3 calendar2.js files, each has Month's translation. I tried to load calenda2.js with code
where <?php echo strtolower($mosConfig_lang);?> shows the name of selected language (english, russian, etc).In joomla's template's index.php it works, in chronocontact.php plugin - doesn't
so question is - how to translate calendar picker, so translation could be switched by Joomfish?
3)simly - how to make that week starts at Monday, not Sunday?
thanks for answers
p.s. I'm using joomla 1.5., with latest version of chronocontacts
I've set forms, everthing works with glance, but here are some questions about calendar picker:
1)how to set minDate=today?
i mean that user couldn't choose date, that is earlier than today. in calendar2.js I see
new Date(1000,0,1);var A=new Date(2999,11,31)
, how to 1000,0,1 change to today's date? 2)about languages - I have joomfish installed and I want to translate calendar picker.I made 3 calendar2.js files, each has Month's translation. I tried to load calenda2.js with code
<script type="text/javascript" src="<?php echo JURI::Base(); ?>components/com_chronocontact/js/<?php echo strtolower($mosConfig_lang);?>/calendar2.js"></script>
where <?php echo strtolower($mosConfig_lang);?> shows the name of selected language (english, russian, etc).In joomla's template's index.php it works, in chronocontact.php plugin - doesn't
so question is - how to translate calendar picker, so translation could be switched by Joomfish?
3)simly - how to make that week starts at Monday, not Sunday?
thanks for answers
p.s. I'm using joomla 1.5., with latest version of chronocontacts
Hi Flasherr,
Please see this post which will tell you how to over-ride the ChronoForms default settings. In an post just before that Max also posted a link to the Calendar docs.
In this case you will need something like this:
Bob
Please see this post which will tell you how to over-ride the ChronoForms default settings. In an post just before that Max also posted a link to the Calendar docs.
In this case you will need something like this:
classes: ['dashboard'],
days: ['dim', 'lun', 'mar', 'mer', 'jeu', 'ven', 'sam'],
months: ['janvier', 'fevrier', . . . 'dec'],
direction: 0.5,
offset: 1
Bob
It works, tnx!
just one thing to clarify: if there are 2 date fields (i.e. date_11, date_12), is this syntax OK and it wont't cause bugs on some browsers?
I mean that there is no myCal_date_12 defined
just one thing to clarify: if there are 2 date fields (i.e. date_11, date_12), is this syntax OK and it wont't cause bugs on some browsers?
...
window .addEvent('domready', function() {
myCal_date_11 = new Calendar({
date_11: 'd/m/Y',
date_12: 'd/m/Y'
...
I mean that there is no myCal_date_12 defined
This topic is locked and no more replies can be posted.