animación en el pop up fullcalendar

This commit is contained in:
OscarRui 2021-06-05 11:27:06 +02:00 committed by GitHub
parent accb27c682
commit fd712e5563
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,8 @@ $(document).ready(function(){
timeFormat: 'H:mm', timeFormat: 'H:mm',
select: function(start, end, allDay) select: function(start, end, allDay)
{ {
modal.style.display = "block"; //modal.style.display = "block";
$(modal).fadeIn();
/* /*
var e = { var e = {
"date" : $.fullCalendar.formatDate(allDay,"Y-MM-DD"), "date" : $.fullCalendar.formatDate(allDay,"Y-MM-DD"),
@ -125,13 +126,15 @@ $(document).ready(function(){
// When the user clicks on <span> (x), close the modal // When the user clicks on <span> (x), close the modal
span.onclick = function() { span.onclick = function() {
modal.style.display = "none"; //modal.style.display = "none";
$(modal).fadeOut();
} }
// When the user clicks anywhere outside of the modal, close it // When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) { window.onclick = function(event) {
if (event.target == modal) { if (event.target == modal) {
modal.style.display = "none"; //modal.style.display = "none";
$(modal).fadeOut();
} }
} }
}); });