0
我试图使用updateEvent更新fullcalendar事件,但只有第一次工作,第二次尝试使用它,它也会更新第一个事件。感谢和抱歉我的英语。updateEvent
eventClick: function(event,element) {
$('#ventanaEdit').removeClass('editarInv').addClass('editar');
$('#titulo').val(event.title)
$('#color').val(event.backgroundColor)
$('#titulo').focus();
$('#editar').click(function(){
var titulo= document.getElementById('titulo').value;
var color = document.form1[2].value;
event.title= titulo;
event.backgroundColor= color;
$('#calendar').fullCalendar('updateEvent', event);
$('#formulario').each (function(){
this.reset();
});
$('#ventanaEdit').removeClass('editar').addClass('editarInv');
});
它的工作原理非常完美,非常感谢您! – Mikelon85 2012-03-28 08:02:46