Skip to content
Snippets Groups Projects
Commit be49c507 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

dev #14883 disable click function when a month as no event in calendir list month view

parent 1a1ee466
Branches
Tags
4 merge requests!286Dev #14883 Multiple Fix For Valence,!261Dev #15091 Upgrade Menu Vertical Dom Html,!260Dev #14883 Multiple Fix For Valence,!259Dev #14883 Multiple Fix For Valence
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 = $("a.calendar_title_month_clickable:first-child, a.calendar_title_month_clickable:last-child, .calendar .month_list a:not(.no_event)");
month_link.click(function(event) {
var url = $(this).attr('href');
if(!url) {
event.preventDefault();
return false;
}
if (url == '#')
url = $(this).jqmData('href');
......@@ -11,7 +17,12 @@ var ajaxify_calendars = function () {
event.preventDefault();
});
$('.calendar').bind('swiperight',
var month_no_event = $('.calendar .month_list a.no_event');
month_no_event.click(function(event) {
event.preventDefault();
});
$('.calendar').bind('swiperight',
function () {
$("a.calendar_title_month_clickable:first-child").click();
});
......@@ -33,6 +44,7 @@ var ajaxify_calendars = function () {
$('.auto_resize').removeClass('auto_resize');
if (undefined != window.calendrierAfterLoad)
calendrierAfterLoad();
};
$(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