mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-15 11:56:25 +00:00
39 lines
837 B
JavaScript
39 lines
837 B
JavaScript
|
$(document).ready(function() {
|
||
|
$('.tooltip_interactive').tooltipster({
|
||
|
interactive: true,
|
||
|
interactiveTolerance: 500,
|
||
|
delay: 100,
|
||
|
maxWidth : 400
|
||
|
});
|
||
|
|
||
|
$('.tooltip').tooltipster({
|
||
|
delay: 100,
|
||
|
maxWidth : 400
|
||
|
});
|
||
|
|
||
|
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();
|
||
|
});
|
||
|
});
|
||
|
});
|