rem: 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; 
add: var Difference = newStartDate.getTime() - OldStartDate.getTime(); var oldEndDate = new Date( gEventBeingDragged.end.getTime() ); var newEndDate = oldEndDate.getTime() + Difference; 
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 );      //edit the event being dragged to change its start and end date      //don't change the start and end time though.      gICalLib.modifyEvent( gEventBeingDragged, gEventBeingDragged.parent.server );            //refresh the view  }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/c1a9504fb382eebb83b20b53733ec87abbbbfe30/monthView.js/clean/calendar/resources/content/monthView.js