Version 0.2.0-RC Release
Here is new version of calendar.js folks!
This version incorporate some very cool new features.
Load events
Most important that the way we load events has been changed.
Parameter
events_url
is now depreciated although still supported. New parameterevents_source
should be used instead.
And now this parameter may be a function and you can control from where and how you get your events.
Bootstrap 3
Support for Twitter Bootstrap 3 has ben added. But it is still compatible with Bootstrap 2 as well. Now calendar supports both Bootstrap versions 2 and 3 seamlessly.
On the demo you will find Use bootstrap 3 button to check it out.
Modal Window
Now you can open events in modal window. This is really helpful because user stay on the same page and calendar view and date stays untouched.
To enable modal window all you have to do is to add standard Bootstrap modal window HTML and pass its id
to calendar.
<div class="modal hide fade" id="events-modal">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>Event</h3>
</div>
<div class="modal-body" style="height: 400px">
</div>
<div class="modal-footer">
<a href="#" data-dismiss="modal" class="btn">Close</a>
</div>
</div>
and
$('#calendar').calendar({
modal: '#events-modal'
});
On the demo you will see checkbox which will allow you to see how it works.
Timezone
Now calendar may detect and send browser timezone as a browser_timezone
parameter to event feed URL. This may be sometimes very useful if you want to adjust events time on the server.
To use this feature you will have to include jsTimezoneDetect javascript. You do not need to set any parameter. Just include this script and it will start passing TZ to your events server.
This script is supplied in components
folder #119.
Holidays
Holidays is a unique feature of calendar.js to display events repeated every year. This is where it shines. We had added some additional changed that make it even more advanced.
- Added - #143 Allow definition of multi-day holidays. Like holidays from 1 Jan to 5 Jan.
- Add Country-dependent holidays. Now set of holidays is bonded to language file. And when you change language, holidays will be also changed. Although there is a way to explicitly pass holidays that will be shown with any language file.
- Improved - Holiday calculation code was significantly simplified and improved.
- Added - Russian holidays to
ru-RU.js
Source: http://ppt.ru/kodeks.phtml?kodeks=17&paper=112
Other Fixes and Improvments
Along with listed bellow, there was many code optimizations and improvements.
- Fixed - days highlights on event mouse over
- Added - sort events when returned from local function - @mlocati
- Improve - Hide overflowing header texts on calendar resize smaller - @mlocati
- Improve - Use utf-8 chars instead of html entities - #136
- Added - Show "No events in this day" in day view when no events
- Improve - translations of
es-ES.js
,el-GR.js
,fr-FR.js
- @stevoo82 - Improve - Use javascript:void(0) instead of # for empty event urls. So that if clicked the browser does not browse to '#', that would scroll the page to the top.
- Fixed - Avoid error if event url is null or not specified - #124
- Improve - Always have calendar JavaScript object in any template.
- Fixed - #112 default position dates shared across instances on pages with more than one calendar.
- Improved -
README.md
was checked and updated #104 @stevoo82 - Fixed - #102 week when base date is Sunday and we have Monday as first day
- Fixed - year view rows