From a30609457a44c4a8e6ac9205ed47c049a05b2c16 Mon Sep 17 00:00:00 2001 From: gloas <gloas@git-test.afi-sa.fr> Date: Thu, 19 Dec 2013 08:48:54 +0000 Subject: [PATCH] Calendrier JS suppression effet du wrap --- public/opac/js/calendrier.js | 54 ++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/public/opac/js/calendrier.js b/public/opac/js/calendrier.js index 07a096f0682..c624ec0b451 100644 --- a/public/opac/js/calendrier.js +++ b/public/opac/js/calendrier.js @@ -1,36 +1,36 @@ 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"); - month_link.click(function(event) { - var url = $(this).attr('href'); - if (url == '#') - url = $(this).jqmData('href'); - $(this).closest(".calendar").load(url+'/render/ajax', - ajaxify_calendars); - event.preventDefault(); - }); + var month_link = $("a.calendar_title_month_clickable:first-child, a.calendar_title_month_clickable:last-child, .calendar .month_list a"); + month_link.click(function(event) { + var url = $(this).attr('href'); + if (url == '#') + url = $(this).jqmData('href'); + $(this).closest(".contenu").load(url+'/render/ajax', + ajaxify_calendars); + event.preventDefault(); + }); - $('.calendar').bind('swiperight', - function () { - $("a.calendar_title_month_clickable:first-child").click(); - }); - $('.calendar').bind('swipeleft', - function () { - $("a.calendar_title_month_clickable:last-child").click(); - }); + $('.calendar').bind('swiperight', + function () { + $("a.calendar_title_month_clickable:first-child").click(); + }); + $('.calendar').bind('swipeleft', + function () { + $("a.calendar_title_month_clickable:last-child").click(); + }); - $("form#calendar_select_categorie").change(function(event) { - var url = $(this).attr('action'); - $(this).parents(".calendar").load(url, - {'select_id_categorie':$(this).children('select').val(), - 'id_module':$(this).children('input').val()}, - ajaxify_calendars); - }); + $("form#calendar_select_categorie").change(function(event) { + var url = $(this).attr('action'); + $(this).parents(".calendar").load(url, + {'select_id_categorie':$(this).children('select').val(), + 'id_module':$(this).children('input').val()}, + ajaxify_calendars); + }); - $('.auto_resize').removeClass('auto_resize'); - if (undefined != window.calendrierAfterLoad) - calendrierAfterLoad(); + $('.auto_resize').removeClass('auto_resize'); + if (undefined != window.calendrierAfterLoad) + calendrierAfterLoad(); }; $(ajaxify_calendars); -- GitLab