jQuery fullCalendar + Fancybox popup to edit event

后端 未结 2 1978
死守一世寂寞
死守一世寂寞 2021-02-11 03:54

I am generating events on fullCalendar with this code



        
2条回答
  •  孤独总比滥情好
    2021-02-11 04:27

    After Getting Success you just have to just render that event in the calendar.

    success:function(rep)  
                        {  
                            var response_array = rep.split('|::|');  
                            if(response_array[0] == 'Error')    
                            {  
                            //alert(response_array[1]);  
                             $('#error').show();  
                             $('#error').html(response_array[1]);  
                           $('#error').fadeOut(3000);  
                          }  
                          if(response_array[0] == 'Success')  
                          {            
                           //alert(response_array[1]);  
                             // Close the fancybox window:  
                             $('#fancy_close').trigger('click');    
                            $("#calendarinfo").fullCalendar('renderEvent', {                            title: $('#title').val(),  
                                    start: $datdata+" "+$hrsdata+":"+$mnsdata+":00 GMT+0000",
                                },true);  
    
                          }  
                        }  
    

提交回复
热议问题