<div id="loading" style="position:absolute;top:20px;left:350px;padding:5px 30px;display:none;border:1px solid #ddd;background:#eee;z-index:100;"><:organiseur:loading:></div>
<div id="calendrier"></div>
-<link rel='stylesheet' type='text/css' href='#CHEMIN{lib/fullcalendar/fullcalendar.css}' />
+<link rel='stylesheet' type='text/css' href='#CHEMIN{lib/fullcalendar/fullcalendar.min.css}' />
<link rel='stylesheet' type='text/css' href='#CHEMIN{calendrier.css}' />
-<script type='text/javascript' src='#CHEMIN{lib/fullcalendar/fullcalendar.js}'></script>
+<script type='text/javascript' src='#CHEMIN{lib/moment/moment-with-locales.min.js}'></script>
+<script type='text/javascript' src='#CHEMIN{lib/fullcalendar/fullcalendar.min.js}'></script>
+<script type='text/javascript' src='#CHEMIN{lib/fullcalendar/locale-all.js}'></script>
<script type="text/javascript">
jQuery(function($) {
// page is now ready, initialize the calendar...
-
$('#calendrier').fullCalendar({
- editable: false,
- events: "[(#URL_ACTION_AUTEUR{quete_calendrier_prive,calendrier}|parametre_url{quoi,rv,&})]",
- header: {
- left: 'prev,next today',
- center: 'title',
- right: 'month,agendaWeek,agendaDay'
- },
- firstDay: 1,
- monthNames:['<:date_mois_1|texte_script:>','<:date_mois_2|texte_script:>','<:date_mois_3|texte_script:>','<:date_mois_4|texte_script:>','<:date_mois_5|texte_script:>','<:date_mois_6|texte_script:>','<:date_mois_7|texte_script:>','<:date_mois_8|texte_script:>','<:date_mois_9|texte_script:>','<:date_mois_10|texte_script:>','<:date_mois_11|texte_script:>','<:date_mois_12|texte_script:>'],
- monthNamesShort:['<:date_mois_1_abbr|texte_script:>','<:date_mois_2_abbr|texte_script:>','<:date_mois_3_abbr|texte_script:>','<:date_mois_4_abbr|texte_script:>','<:date_mois_5_abbr|texte_script:>','<:date_mois_6_abbr|texte_script:>','<:date_mois_7_abbr|texte_script:>','<:date_mois_8_abbr|texte_script:>','<:date_mois_9_abbr|texte_script:>','<:date_mois_10_abbr|texte_script:>','<:date_mois_11_abbr|texte_script:>','<:date_mois_12_abbr|texte_script:>'],
- dayNames:['<:date_jour_1|texte_script:>','<:date_jour_2|texte_script:>','<:date_jour_3|texte_script:>','<:date_jour_4|texte_script:>','<:date_jour_5|texte_script:>','<:date_jour_6|texte_script:>','<:date_jour_7|texte_script:>'],
- dayNamesShort:['<:date_jour_1_abbr|texte_script:>','<:date_jour_2_abbr|texte_script:>','<:date_jour_3_abbr|texte_script:>','<:date_jour_4_abbr|texte_script:>','<:date_jour_5_abbr|texte_script:>','<:date_jour_6_abbr|texte_script:>','<:date_jour_7_abbr|texte_script:>'],
- buttonText: {
- today: '<:date_aujourdhui|texte_script:>',
- month: '<:organiseur:cal_par_mois|texte_script:>',
- day: '<:organiseur:cal_par_jour|texte_script:>',
- week: '<:organiseur:cal_par_semaine|texte_script:>'
- },
- weekMode : 'liquid',
- loading: function(bool) {
- if (bool) $('#loading').show();
- else $('#loading').hide();
- },
- timeFormat: {
- // for agendaWeek and agendaDay
- agenda: "H'h'mm{ - H'h'mm}", // 5h00 - 6h30
- // for all other views
- '': "H'h'(mm)" // 19h
- },
- axisFormat: "H'h'(mm)",
- allDayText:'<:organiseur:cal_jour_entier|texte_script:>',
- columnFormat: {
- month: 'ddd', // Mon
- week: 'ddd d/M', // Mon 9/7
- day: 'dddd d/M' // Monday 9/7
- },
- titleFormat: {
- month: 'MMMM yyyy', // September 2009
- week: "d [ MMM] [ yyyy]{ '—' d MMM yyyy}", // Sep 7 - 13 2009
- day: 'dddd d MMM yyyy' // Tuesday, Sep 8, 2009
- },
- dayClick: function(date, allDay, jsEvent, view) {
- if(view.name=='month'){
- $('.fc-button-agendaWeek').click();
- $('#calendrier').fullCalendar( 'gotoDate', date );
- }
- else
- if(view.name=='agendaWeek'){
- $('.fc-button-agendaDay').click();
- $('#calendrier').fullCalendar( 'gotoDate', date );
- }
- },
- isRTL : [(#LANG_DIR|=={rtl}|?{true,false})]
+ locale: '[(#LANG|strtolower)]',
+ editable: false,
+ events: "[(#URL_ACTION_AUTEUR{quete_calendrier_prive,calendrier}|parametre_url{quoi,rv,&})]",
+ header: {
+ left: 'prev,next today',
+ center: 'title',
+ right: 'month,agendaWeek,agendaDay'
+ },
+ loading: function(bool) {
+ if (bool) $('#loading').show();
+ else $('#loading').hide();
+ },
+ dayClick: function(date, jsEvent, view) {
+ if (view.name == 'month') {
+ $('.fc-agendaWeek-button').click();
+ $('#calendrier').fullCalendar( 'gotoDate', date );
+ } else if (view.name == 'agendaWeek') {
+ $('.fc-agendaDay-button').click();
+ $('#calendrier').fullCalendar( 'gotoDate', date );
+ }
+ },
+ isRTL : [(#LANG_DIR|=={rtl}|?{true,false})]
})
});