rem: eventBoxText.setAttribute( "ondraggesture", "nsDragAndDrop.startDrag(event,monthViewEventDragAndDropObserver);" ); 
context: MultiweekView.prototype.getToDoBox = function multiweekView_getToDoBox( calendarToDo,imageprop ){  var eventBox = document.createElement( "box" );  eventBox.setAttribute( "id", "multiweek-view-todo-box-"+calendarToDo.id );  eventBox.setAttribute( "name", "multiweek-view-todo-box-"+calendarToDo.id );  eventBox.setAttribute( "event"+calendarToDo.id, true );  eventBox.setAttribute( "class", "multiweek-day-event-box-class" );  if( calendarToDo.categories && calendarToDo.categories != "" )  {    eventBox.setAttribute( calendarToDo.categories, "true" );  }              eventBox.setAttribute( "todobox", "multiweekview" );  eventBox.setAttribute( "onclick", "multiweekToDoBoxClickEvent( this, event )" );  eventBox.setAttribute( "ondblclick", "multiweekToDoBoxDoubleClickEvent( this, event )" );  eventBox.setAttribute( "onmouseover", "gCalendarWindow.changeMouseOverInfo( calendarToDo, event )" );  eventBox.setAttribute( "tooltip", "eventTooltip" );  eventBox.setAttribute( "ondraggesture", 		"nsDragAndDrop.startDrag(event,monthViewEventDragAndDropObserver);" );  // add a property to the event box that holds the calendarEvent that the  // box represents    eventBox.calendarToDo = calendarToDo;           this.kungFooDeathGripOnEventBoxes.push( eventBox );    // Make a text item to show the event title    var eventBoxText = document.createElement( "label" );  eventBoxText.setAttribute( "crop", "end" );  eventBoxText.setAttribute( "class", "multiweek-day-event-text-class" );  eventBoxText.setAttribute( "value", calendarToDo.title );  var completed = calendarToDo.completed.getTime();	    if( completed > 0 )  eventBoxText.setAttribute("completed","true");  var newImage = document.createElement("image");  newImage.setAttribute( "class", "todo-due-image-class" );  if(calendarToDo.priority > 0 && calendarToDo.priority < 5)     newImage.setAttribute( "highpriority", "true" );  if(calendarToDo.priority > 5 && calendarToDo.priority < 10)     newImage.setAttribute( "lowpriority", "true" );  eventBox.appendChild( newImage );  eventBoxText.setAttribute( "flex", "1" );  eventBoxText.setAttribute( "ondraggesture", 		  "nsDragAndDrop.startDrag(event,monthViewEventDragAndDropObserver);" );  // add the text to the event box and the event box to the day box  eventBox.appendChild( eventBoxText );          return (eventBox) ; }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/8d5b9e848f1b46aee74fa436bf42535c99516433/multiweekView.js/buggy/calendar/resources/content/multiweekView.js