si alguien ha trabajado con el fullcalendar plugin jquery
necesito implementar la funcion para borrar los eventos
Código Javascript
:
Ver originalvar onMouseoverEvent = function(me, event) {
if(event.editable) {
/*
* SHOW DELETE ICON, ALSO POSSIBLE TO SHOW AN EDIT ICON HERE
*/
var layer = '<div id="events-layer" class="fc-transparent" style="position:absolute; width:100%; height:100%; top:-1px; text-align:right; z-index:100">'
+ '<a><img src="images/delete.png" title="delete" width="14" id="delbut'+event.id+'" border="0" style="padding-right:5px; padding-top:2px;" /></a>'
+ '</div>';
me.append(layer);
$("#delbut"+event.id).hide();
$("#delbut"+event.id).fadeIn(200);
$("#delbut"+event.id).click(function() {
if(event.id) {
// opslaan in db
var dataString = 'event_id='+ event.id ;
$.ajax({
type:"POST",
url:"command/cal_events.php?action=del",
data: dataString,
success:function(html){}
});
$('#calendar').fullCalendar('removeEvents', event.id);
}
});
}