Jquery完整的日历,刷新事件不起作用?

时间:2016-05-07 17:38:40

标签: php jquery symfony calendar

我的日历有问题。当我将事件移动到另一个日期时,数据库会执行更新,但事件会在起始位置返回。 怎么了?

请看

https://gyazo.com/5122a54317aba149d7315ff7e9e75e00

import geopandas as gp
shapefile = 'shapefile/ne_50m_admin_0_countries.shp'
df_shapefile_countries = gpd.GeoDataFrame.from_file(shapefile)

import mplleaflet
ax = df_shapefile_countries .plot(column='pop_est')
mplleaflet.show(fig=ax.figure)

和控制器

    eventDrop: function (event, delta, revertFunc) {
                    $.ajax({
                        url: "{{ path('update') }}",
                        data: {
                            Eventid:event.id,
                            Start:event.start.format(),
                            End:event.end.format()
                        },
                        type: 'GET',
                        dataType: 'json',
                        success: function (response) {
                            if (response.status != 'success')
                                revertFunc();
                            $('#calendar').fullCalendar( 'refetchEvents' ); //should refresh events


                        },
                        error: function (e) {
                            revertFunc();
                            alert('Error processing your request: ' + e.responseText);
                        }
                    });
                },

0 个答案:

没有答案