Skip to content
Snippets Groups Projects
Commit 25371c58 authored by llaffont's avatar llaffont
Browse files

Correction navigation calendrier ajax

parent d9ad5277
Branches
Tags
No related merge requests found
var ajaxify_calendars = function () {
var month_link = $("a.calendar_title_month_clickable:first-child, a.calendar_title_month_clickable:last-child, .calendar .month_list a");
var month_link = $(".month_list a");
month_link.click(function(event) {
var url = $(this).attr('href');
......@@ -8,35 +7,32 @@ var ajaxify_calendars = function () {
url = $(this).jqmData('href');
$(this).closest(".contenu").load(url+'/render/ajax',
ajaxify_calendars);
ajaxify_calendars);
event.preventDefault();
});
$('.calendar').bind('swiperight',
function () {
$("a.calendar_title_month_clickable:first-child").click();
});
function () {
$("a.calendar_title_month_clickable:first-child").click();
});
$('.calendar').bind('swipeleft',
function () {
$("a.calendar_title_month_clickable:last-child").click();
});
function () {
$("a.calendar_title_month_clickable:last-child").click();
});
$("form#calendar_select_categorie").change(function(event) {
var url = $(this).attr('action');
$(this).closest(".calendar").load(url,
{'select_id_categorie':$(this).children('select').val(),
'id_module':$(this).children('input').val()},
ajaxify_calendars);
{'select_id_categorie':$(this).children('select').val(),
'id_module':$(this).children('input').val()},
ajaxify_calendars);
});
$('.auto_resize').removeClass('auto_resize');
if (undefined != window.calendrierAfterLoad){
if (undefined != window.calendrierAfterLoad)
calendrierAfterLoad();
}else{
console.info("calendrierAfterLoad() is not defined");
}
};
$(ajaxify_calendars);
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment