eventDrop: function(event, dayDelta, revertAction) { $.post("/calendar/",{id: event.id } , function(result) { if (result == "succeed"){ alert('succeed'); } else{ alert("Server error, Please try again"); } },"json"); }
So, in this method, I have an ajax call. I want the calendar to be updated only upon a successful return from the server, otherwise it does nothing. How is such code written?
source share