add: gICalLib.modifyEvent( gEventBeingDragged, gEventBeingDragged.parent.server ); } 
context:   onDrop: function (evt,dropdata,session){    //get the date of the current event box.    //dump( "\n\nDROP EVNET->\n"+gEventBeingDragged.start );    if( gBoxBeingDroppedOn.date == null )        return;        var newDay = new Date(gBoxBeingDroppedOn.date) ;    var oldStartDate = new Date( gEventBeingDragged.start.getTime() );    var oldEndDate = new Date( gEventBeingDragged.end.getTime() );    var newStartDate = new Date( oldStartDate.getTime() ) ;    newStartDate.setFullYear( newDay.getFullYear());    //call setMonth() twice necessary, because of a bug ? observed in Mozilla 1.2.1. :    //     - the bug consequence is that an event drag from month 0 (Jan.) to month 1 (Feb)    //       is set by a single call to month 2 (Mar).     newStartDate.setMonth( newDay.getMonth() );    newStartDate.setMonth( newDay.getMonth() );    newStartDate.setDate( newDay.getDate());    var Difference = newStartDate.getTime() - oldStartDate.getTime();        var newEndDate = oldEndDate.getTime() + Difference;    gEventBeingDragged.start.setTime( newStartDate.getTime() );    gEventBeingDragged.end.setTime( newEndDate );        if( gEventBeingDragged.recurWeekdays > 0 )    {        //shift the days from their old days to their new days.        if( Difference < 0 )            Difference += 7;        gEventBeingDragged.recurWeekdays = gEventBeingDragged.recurWeekdays << Difference;    }    //edit the event being dragged to change its start and end date    //don't change the start and end time though.    if( evt.ctrlKey == true )    {        var eventToCopy = gEventBeingDragged.clone();        eventToCopy.id = 0; //set the id to 0 so that it generates a new one                gICalLib.addEvent( eventToCopy, gEventBeingDragged.parent.server );      }    else    {        gICalLib.modifyEvent( gEventBeingDragged, gEventBeingDragged.parent.server );      }  }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/4b005908e6ee022670057a7f6cddc7baccd4c063/monthView.js/clean/calendar/resources/content/monthView.js