rem: var newDay = gBoxBeingDroppedOn.dayNumber; if( newDay == null ) 
add:  if( gBoxBeingDroppedOn.date == null ) 
context:   onDrop: function (evt,dropdata,session){    //get the date of the current event box.    //dump( "\n\nDROP EVNET->\n"+gEventBeingDragged.start );    var newDay = gBoxBeingDroppedOn.dayNumber;    if( newDay == null )        return;        var OldStartDate = new Date( gEventBeingDragged.start.getTime() );    var newStartDate = new Date( OldStartDate.getTime() );    newStartDate.setDate( newDay );    var Difference = newStartDate.getTime() - OldStartDate.getTime();    var oldEndDate = new Date( gEventBeingDragged.end.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: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/251512a6aef50be94af2644d457bd00449558f62/monthView.js/clean/calendar/resources/content/monthView.js