blob: 388ed26212a7ffb4a45c862fd5f62865e46bf7cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
$(document).ready(function() {
var month = $("#month").val();
var year = $("#year").val();
$(".event_day, .day-number").click(function(e) {
e.preventDefault();
var id = $(this).data("gazelle-id");
if ($(this).hasClass("day-number")) {
var day = $(this).text().trim();
} else {
var day = $(this).parent().next().text().trim();
}
$.ajax({
type : "GET",
dataType : "html",
url : "tools.php?action=get_calendar_event",
data : {
"id" : id,
"day" : day,
"month": month,
"year": year
}
}).done(function(response) {
$("#event_div").html(response);
$("#event_form").validate();
});
});
});
|